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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user