Skip to content

Commit 9a34c2d

Browse files
committed
Keep the existing pragma's for the smartmeter
1 parent 46c0665 commit 9a34c2d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

plugwise/helper.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,9 @@ def _get_p1_smartmeter_info(self) -> None:
170170
appl = Munch()
171171
locator = MODULE_LOCATOR
172172
module_data = self._get_module_data(self._home_location, locator)
173-
if not module_data["contents"]:
174-
return Munch() # no module-data present means the device has been removed
173+
# No module-data present means the device has been removed
174+
if not module_data["contents"]: # pragma: no cover
175+
return Munch() # pragma: no cover
175176

176177
appl.available = None
177178
appl.entity_id = self._gateway_id

0 commit comments

Comments
 (0)