Add L900-10 fixture and it's additional component requests (#629)

This commit is contained in:
Steven B
2024-01-10 18:40:36 +00:00
committed by GitHub
parent 460054ced7
commit 897db674c2
5 changed files with 451 additions and 2 deletions

View File

@@ -220,7 +220,7 @@ async def _make_requests_or_exit(
final = {}
try:
end = len(requests)
step = 10 # Break the requests down as there seems to be a size limit
step = 5 # Break the requests down as there seems to be a size limit
for i in range(0, end, step):
x = i
requests_step = requests[x : x + step]

View File

@@ -347,4 +347,11 @@ COMPONENT_REQUESTS = {
"light_effect": [SmartRequest.get_dynamic_light_effect_rules()],
"bulb_quick_control": None,
"on_off_gradually": [SmartRequest.get_raw_request("get_on_off_gradually_info")],
"light_strip": None,
"light_strip_lighting_effect": [
SmartRequest.get_raw_request("get_lighting_effect")
],
"music_rhythm": None, # music_rhythm_enable in device_info
"segment": [SmartRequest.get_raw_request("get_device_segment")],
"segment_effect": [SmartRequest.get_raw_request("get_segment_effect_rule")],
}