Skip to content

Commit 91b6877

Browse files
committed
Contents -> content
1 parent 9cd1b54 commit 91b6877

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

plugwise/common.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,9 @@ def _appl_heater_central_info(
110110
# xml_3: self._modules for legacy, self._domain_objects for actual
111111
xml_3 = return_valid(xml_3, self._domain_objects)
112112
module_data = self._get_module_data(xml_1, locator_1, xml_2=xml_3)
113-
if not module_data["contents"]:
113+
if not module_data["content"]:
114114
module_data = self._get_module_data(xml_1, locator_2, xml_2=xml_3)
115-
if not module_data["contents"]:
115+
if not module_data["content"]:
116116
self._heater_id = NONE
117117
return (
118118
Munch()
@@ -133,7 +133,7 @@ def _appl_thermostat_info(
133133
locator = "./logs/point_log[type='thermostat']/thermostat"
134134
xml_2 = return_valid(xml_2, self._domain_objects)
135135
module_data = self._get_module_data(xml_1, locator, xml_2=xml_2)
136-
if not module_data["contents"]:
136+
if not module_data["content"]:
137137
return Munch() # no module-data present means the device has been removed
138138

139139
appl.vendor_name = module_data["vendor_name"]
@@ -287,7 +287,7 @@ def _get_module_data(
287287
search = return_valid(xml_2, self._domain_objects)
288288
module = search.find(loc)
289289
if module is not None: # pylint: disable=consider-using-assignment-expr
290-
module_data["contents"] = True
290+
module_data["content"] = True
291291
get_vendor_name(module, module_data)
292292
module_data["vendor_model"] = module.find("vendor_model").text
293293
module_data["hardware_version"] = module.find("hardware_version").text

plugwise/helper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def _get_p1_smartmeter_info(self) -> None:
151151
tag = "electricity"
152152
module_data = self._get_module_data(self._home_location, locator, key=tag)
153153
# No module-data present means the device has been removed
154-
if not module_data["contents"]: # pragma: no cover
154+
if not module_data["content"]: # pragma: no cover
155155
return
156156

157157
appl.available = None
@@ -232,7 +232,7 @@ def _appliance_info_finder(self, appliance: Appliance) -> Appliance | None:
232232
locator = MODULE_LOCATOR
233233
module_data = self._get_module_data(appliance, locator)
234234
# A plug without module-data is orphaned/ no present
235-
if not module_data["contents"]:
235+
if not module_data["content"]:
236236
return None
237237

238238
print(f"HOI24 {module_data}")

0 commit comments

Comments
 (0)