Skip to content

Commit 5e35ae8

Browse files
committed
device -> entity corrections
1 parent 5fc725a commit 5e35ae8

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

plugwise/helper.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ def _all_appliances(self) -> None:
283283
284284
Also, collect the P1 smartmeter info from a location
285285
as this one is not available as an appliance.
286-
Note: For P1 devices, the entity_id for the gateway and smartmeter are
286+
Note: For P1, the entity_id for the gateway and smartmeter are
287287
switched to maintain backward compatibility with existing implementations.
288288
"""
289289
self._count = 0
@@ -358,11 +358,11 @@ def _get_smartmeter_info(self) -> None:
358358
for item in self.gw_entities:
359359
if item != self.gateway_id:
360360
self.gateway_id = item
361-
# Leave for-loop to avoid a 2nd device_id switch
361+
# Leave for-loop to avoid a 2nd entity_id switch
362362
break
363363

364364
def _sort_gw_entities(self) -> None:
365-
"""Place the gateway and optional heater_central devices as 1st and 2nd."""
365+
"""Place the gateway and optional heater_central entities as 1st and 2nd."""
366366
for dev_class in PRIORITY_DEVICE_CLASSES:
367367
for entity_id, entity in dict(self.gw_entities).items():
368368
if entity["dev_class"] == dev_class:
@@ -417,16 +417,16 @@ def _appliance_info_finder(self, appl: Munch, appliance: etree) -> Munch:
417417
"""Collect info for all appliances found."""
418418
match appl.pwclass:
419419
case "gateway":
420-
# Collect gateway device info
420+
# Collect gateway entity info
421421
return self._appl_gateway_info(appl, appliance)
422422
case _ as dev_class if dev_class in THERMOSTAT_CLASSES:
423-
# Collect thermostat device info
423+
# Collect thermostat entity info
424424
return self._appl_thermostat_info(appl, appliance)
425425
case "heater_central":
426-
# Collect heater_central device info
426+
# Collect heater_central entity info
427427
self._appl_heater_central_info(
428428
appl, appliance, False
429-
) # False means non-legacy device
429+
) # False means non-legacy entity
430430
self._dhw_allowed_modes = self._get_appl_actuator_modes(
431431
appliance, "domestic_hot_water_mode_control_functionality"
432432
)
@@ -837,7 +837,7 @@ def _process_on_off_device_c_heating_state(self, data: GwEntityData) -> None:
837837
data["binary_sensors"]["heating_state"] = data["c_heating_state"]
838838

839839
def _update_anna_cooling(self, entity_id: str, data: GwEntityData) -> None:
840-
"""Update the Anna heater_central device for cooling.
840+
"""Update the Anna heater_central entity for cooling.
841841
842842
Support added for Techneco Elga and Thercon Loria/Thermastage.
843843
"""

0 commit comments

Comments
 (0)