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 946ea0c commit 14fce87Copy full SHA for 14fce87
plugwise_usb/connection/__init__.py
@@ -9,6 +9,7 @@
9
from ..api import StickEvent
10
from ..constants import UTF8
11
from ..exceptions import NodeError, StickError
12
+from ..helpers.util import version_to_model
13
from ..messages.requests import (
14
NodeInfoRequest,
15
NodePingRequest,
@@ -194,7 +195,8 @@ async def initialize_stick(self) -> None:
194
195
node_info, _ = await self.get_node_details(self._mac_stick, ping_first=False)
196
if node_info is not None:
197
self._fw_stick = node_info.firmware
- self._hw_stick = node_info.hardware
198
+ hardware, _ = version_to_model(node_info.hardware)
199
+ self._hw_stick = hardware
200
201
if not self._network_online:
202
raise StickError("Zigbee network connection to Circle+ is down.")
0 commit comments