File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -395,13 +395,15 @@ def _get_measurement_data(self, entity_id: str) -> GwEntityData:
395395
396396 return data
397397
398- def _get_zigbee_availability (self , data : GwEntityData , entity : GwEntityData ) -> GwEntityData :
398+ def _get_zigbee_availability (
399+ self , data : GwEntityData , entity : GwEntityData
400+ ) -> GwEntityData :
399401 # Check zigbee device availabilty
400402 if "module_id" in entity :
401403 module_id = entity ["module_id" ]
402404 locator = f'./module[@id="{ module_id } "]/protocols/zig_bee_node'
403405 if (module := self ._domain_objects .find (locator )) is not None :
404- data ["available" ] = module .find ("reachable" ).text == "true"
406+ data ["available" ] = module .find ("reachable" ).text == "true"
405407
406408 def _collect_group_sensors (
407409 self ,
You can’t perform that action at this time.
0 commit comments