Skip to content

Commit bd65022

Browse files
author
autoruff
committed
fixup: different-update Python code fixed using ruff
1 parent 95332fa commit bd65022

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

plugwise/helper.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)