1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-25 05:26:47 +00:00

Add Shelly RPC device trigger and logbook platforms (#56428)

* Add RPC device trigger and logbook platforms

* Single input event for Block and RPC

* Add device generation to shelly.click
This commit is contained in:
Shay Levy
2021-09-21 00:09:44 +03:00
committed by GitHub
parent 542f637ac4
commit 47340802b3
10 changed files with 409 additions and 101 deletions

View File

@@ -56,6 +56,7 @@ MOCK_BLOCKS = [
]
MOCK_CONFIG = {
"input:0": {"id": 0, "type": "button"},
"switch:0": {"name": "test switch_0"},
"sys": {"ui_data": {}},
"wifi": {
@@ -147,6 +148,7 @@ async def rpc_wrapper(hass):
device = Mock(
call_rpc=AsyncMock(),
config=MOCK_CONFIG,
event={},
shelly=MOCK_SHELLY,
status=MOCK_STATUS,
firmware_version="some fw string",