Skip to content

Commit 34bf0ef

Browse files
committed
Remove return
1 parent 0b7c225 commit 34bf0ef

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

plugwise/helper.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ def _appliance_info_finder(self, appliance: etree, appl: Munch) -> Munch:
596596

597597
return appl
598598

599-
def _p1_smartmeter_info_finder(self, appl: Munch) -> Munch:
599+
def _p1_smartmeter_info_finder(self, appl: Munch) -> None:
600600
"""Collect P1 DSMR Smartmeter info."""
601601
loc_id = next(iter(self._loc_data.keys()))
602602
appl.dev_id = self.gateway_id
@@ -626,8 +626,6 @@ def _p1_smartmeter_info_finder(self, appl: Munch) -> Munch:
626626
if value is not None or key == "location":
627627
self._appl_data[appl.dev_id].update({key: value}) # type: ignore[misc]
628628

629-
return appl
630-
631629
def _create_legacy_gateway(self) -> None:
632630
"""Create the (missing) gateway devices for legacy Anna, P1 and Stretch.
633631
@@ -654,7 +652,7 @@ def _create_legacy_gateway(self) -> None:
654652
if self.smile_type == "power":
655653
# For legacy P1 collect the connected SmartMeter info
656654
appl = Munch()
657-
appl = self._p1_smartmeter_info_finder(appl)
655+
self._p1_smartmeter_info_finder(appl)
658656

659657
def _all_appliances(self) -> None:
660658
"""Collect all appliances with relevant info."""
@@ -726,7 +724,7 @@ def _all_appliances(self) -> None:
726724

727725
# For non-legacy P1 collect the connected SmartMeter info
728726
if self.smile_type == "power":
729-
appl = self._p1_smartmeter_info_finder(appl)
727+
self._p1_smartmeter_info_finder(appl)
730728
# P1: for gateway and smartmeter switch device_id - part 2
731729
for item in self._appl_data:
732730
if item != self.gateway_id:

0 commit comments

Comments
 (0)