Add smartdevice module for led controls (#761)

Allows controlling LED on devices that support it.
This commit is contained in:
Teemu R
2024-02-19 20:59:09 +01:00
committed by GitHub
parent f5175c5632
commit 44b59efbb2
4 changed files with 83 additions and 0 deletions

View File

@@ -46,6 +46,20 @@ class FakeSmartTransport(BaseTransport):
FIXTURE_MISSING_MAP = {
"get_wireless_scan_info": ("wireless", {"ap_list": [], "wep_supported": False}),
"get_led_info": (
"led",
{
"led_rule": "never",
"led_status": False,
"night_mode": {
"end_time": 420,
"night_mode_type": "sunrise_sunset",
"start_time": 1140,
"sunrise_offset": 0,
"sunset_offset": 0,
},
},
),
"get_connect_cloud_state": ("cloud_connect", {"status": 1}),
"get_on_off_gradually_info": ("on_off_gradually", {"enable": True}),
}