We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89b7ca3 commit 80c9f56Copy full SHA for 80c9f56
plugwise/helper.py
@@ -170,8 +170,9 @@ def _get_p1_smartmeter_info(self) -> None:
170
appl = Munch()
171
locator = MODULE_LOCATOR
172
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
+ # No module-data present means the device has been removed
+ if not module_data["contents"]: # pragma: no cover
175
+ return Munch() # pragma: no cover
176
177
appl.available = None
178
appl.entity_id = self._gateway_id
0 commit comments