Skip to content

Commit 2cefd24

Browse files
committed
Fix doubles
1 parent ce5c0fb commit 2cefd24

File tree

3 files changed

+0
-4
lines changed

3 files changed

+0
-4
lines changed

plugwise_usb/network/registry.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ async def retrieve_network_registration(
145145
return await self.retrieve_network_registration(address, retry=False)
146146
return None
147147
address = response.network_address
148-
mac_of_node = response.registered_mac
149148
if (mac_of_node := response.registered_mac) == "FFFFFFFFFFFFFFFF":
150149
mac_of_node = ""
151150
return (address, mac_of_node)

plugwise_usb/nodes/circle.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,6 @@ async def energy_log_update(self, address: int | None) -> bool:
532532

533533
async def _energy_log_records_load_from_cache(self) -> bool:
534534
"""Load energy_log_record from cache."""
535-
cache_data = self._get_cache(CACHE_ENERGY_COLLECTION)
536535
if (cache_data := self._get_cache(CACHE_ENERGY_COLLECTION)) is None:
537536
_LOGGER.warning(
538537
"Failed to restore energy log records from cache for node %s", self.name
@@ -733,7 +732,6 @@ async def clock_synchronize(self) -> bool:
733732
datetime.now(tz=UTC),
734733
self._node_protocols.max,
735734
)
736-
node_response: NodeResponse | None = await set_clock_request.send()
737735
if (node_response := await set_clock_request.send()) is None:
738736
_LOGGER.warning(
739737
"Failed to (re)set the internal clock of %s",

plugwise_usb/nodes/sed.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,6 @@ async def sed_configure( # pylint: disable=too-many-arguments
686686
maintenance_interval,
687687
sleep_duration,
688688
)
689-
response = await request.send()
690689
if (response := await request.send()) is None:
691690
self._new_battery_config = BatteryConfig()
692691
_LOGGER.warning(

0 commit comments

Comments
 (0)