We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 95332fa commit bd65022Copy full SHA for bd65022
1 file changed
plugwise/helper.py
@@ -395,13 +395,15 @@ def _get_measurement_data(self, entity_id: str) -> GwEntityData:
395
396
return data
397
398
- def _get_zigbee_availability(self, data: GwEntityData, entity: GwEntityData) -> GwEntityData:
+ def _get_zigbee_availability(
399
+ self, data: GwEntityData, entity: GwEntityData
400
+ ) -> GwEntityData:
401
# Check zigbee device availabilty
402
if "module_id" in entity:
403
module_id = entity["module_id"]
404
locator = f'./module[@id="{module_id}"]/protocols/zig_bee_node'
405
if (module := self._domain_objects.find(locator)) is not None:
- data["available"] = module.find("reachable").text == "true"
406
+ data["available"] = module.find("reachable").text == "true"
407
408
def _collect_group_sensors(
409
self,
0 commit comments