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 25177a7 commit 5bcc778Copy full SHA for 5bcc778
plugwise/helper.py
@@ -354,13 +354,13 @@ def _get_p1_smartmeter_info(self) -> None:
354
if (
355
location := self._domain_objects.find(f'./location[@id="{loc_id}"]')
356
) is None:
357
- return None
+ return
358
359
locator = MODULE_LOCATOR
360
module_data = self._get_module_data(location, locator)
361
if not module_data["contents"]:
362
LOGGER.error("No module data found for SmartMeter") # pragma: no cover
363
- return None # pragma: no cover
+ return # pragma: no cover
364
appl.available = None
365
appl.entity_id = self.gateway_id
366
appl.firmware = module_data["firmware_version"]
0 commit comments