Skip to content

Commit 5b6542a

Browse files
committed
Fixes
1 parent fa6190a commit 5b6542a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

plugwise_usb/network/__init__.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -294,11 +294,11 @@ async def discover_stick(self, load: bool = False) -> bool:
294294
_LOGGER.debug("Obtain Stick info")
295295
node_info, _ = await self._controller.get_node_details(self._controller.mac_stick, ping_first=False)
296296
if node_info is not None:
297-
_LOGGER.debug("HOI fw_stick before: %s", self._controller.fw_stick)
298-
self._controller.fw_stick = node_info.firmware
299-
self._controller.hw_stick = node_info.hardware
300-
_LOGGER.debug("HOI fw_stick: %s", self._controller.fw_stick)
301-
_LOGGER.debug("HOI hw_stick: %s", self._controller.hw_stick)
297+
_LOGGER.debug("HOI fw_stick before: %s", self._controller._fw_stick)
298+
self._controller._fw_stick = node_info.firmware
299+
self._controller._hw_stick = node_info.hardware
300+
_LOGGER.debug("HOI fw_stick: %s", self._controller._fw_stick)
301+
_LOGGER.debug("HOI hw_stick: %s", self._controller._hw_stick)
302302

303303
# region - Coordinator
304304
async def discover_network_coordinator(self, load: bool = False) -> bool:

0 commit comments

Comments
 (0)