mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-08-06 10:44:04 +00:00
Add L900-10 fixture and it's additional component requests (#629)
This commit is contained in:
@@ -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]
|
||||
|
@@ -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")],
|
||||
}
|
||||
|
Reference in New Issue
Block a user