Skip to content

Commit 6d53670

Browse files
committed
Rename to _update_zigbee_availability(), add docstring
1 parent ff14162 commit 6d53670

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

plugwise/data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ def _get_entity_data(self, entity_id: str, entity: GwEntityData) -> None:
201201
entity, "heater_central", "no OpenTherm communication"
202202
)
203203
# Zigbee node availability
204-
self._get_zigbee_availability(entity)
204+
self._update_zigbee_availability(entity)
205205

206206
# Switching groups data
207207
self._entity_switching_group(entity)

plugwise/helper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,8 +449,8 @@ def _get_measurement_data(self, entity_id: str, entity: GwEntityData) -> None:
449449

450450
entity.update(data)
451451

452-
def _get_zigbee_availability(self, entity: GwEntityData) -> None:
453-
# Check zigbee device availability
452+
def _update_zigbee_availability(self, entity: GwEntityData) -> None:
453+
"""Update zigbee device availability status."""
454454
if "module_id" in entity:
455455
module_id = entity["module_id"]
456456
locator = f'./module[@id="{module_id}"]/protocols/zig_bee_node'

0 commit comments

Comments
 (0)