File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -167,7 +167,14 @@ def _update_children_info(self) -> None:
167
167
self ._last_update , "get_child_device_list" , {}
168
168
):
169
169
for info in child_info ["child_device_list" ]:
170
- self ._children [info ["device_id" ]]._update_internal_state (info )
170
+ child_id = info ["device_id" ]
171
+ if child_id not in self ._children :
172
+ _LOGGER .debug (
173
+ "Skipping child update for %s, probably unsupported device" ,
174
+ child_id ,
175
+ )
176
+ continue
177
+ self ._children [child_id ]._update_internal_state (info )
171
178
172
179
def _update_internal_info (self , info_resp : dict ) -> None :
173
180
"""Update the internal device info."""
Original file line number Diff line number Diff line change @@ -68,7 +68,14 @@ def _update_children_info(self) -> None:
68
68
self ._last_update , "getChildDeviceList" , {}
69
69
):
70
70
for info in child_info ["child_device_list" ]:
71
- self ._children [info ["device_id" ]]._update_internal_state (info )
71
+ child_id = info ["device_id" ]
72
+ if child_id not in self ._children :
73
+ _LOGGER .debug (
74
+ "Skipping child update for %s, probably unsupported device" ,
75
+ child_id ,
76
+ )
77
+ continue
78
+ self ._children [child_id ]._update_internal_state (info )
72
79
73
80
async def _initialize_smart_child (
74
81
self , info : dict , child_components : dict
You can’t perform that action at this time.
0 commit comments