Skip to content

Commit 5bcc778

Browse files
committed
Fix returns
1 parent 25177a7 commit 5bcc778

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugwise/helper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,13 +354,13 @@ def _get_p1_smartmeter_info(self) -> None:
354354
if (
355355
location := self._domain_objects.find(f'./location[@id="{loc_id}"]')
356356
) is None:
357-
return None
357+
return
358358

359359
locator = MODULE_LOCATOR
360360
module_data = self._get_module_data(location, locator)
361361
if not module_data["contents"]:
362362
LOGGER.error("No module data found for SmartMeter") # pragma: no cover
363-
return None # pragma: no cover
363+
return # pragma: no cover
364364
appl.available = None
365365
appl.entity_id = self.gateway_id
366366
appl.firmware = module_data["firmware_version"]

0 commit comments

Comments
 (0)