Skip to content

Commit 9676a39

Browse files
committed
fix publication of NodeFeature.SENSE
combine report_received and check for true before propagating to integration
1 parent 429cf36 commit 9676a39

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

plugwise_usb/nodes/helpers/firmware.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ class SupportedVersions(NamedTuple):
156156
FEATURE_SUPPORTED_AT_FIRMWARE: Final = {
157157
NodeFeature.BATTERY: 2.0,
158158
NodeFeature.INFO: 2.0,
159+
NodeFeature.SENSE: 2.0,
159160
NodeFeature.TEMPERATURE: 2.0,
160161
NodeFeature.HUMIDITY: 2.0,
161162
NodeFeature.ENERGY: 2.0,

plugwise_usb/nodes/sense.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@ async def load(self) -> bool:
5757
await self._load_from_cache()
5858
else:
5959
self._load_defaults()
60+
self._loaded = True
6061
self._setup_protocol(
6162
SENSE_FIRMWARE_SUPPORT,
6263
(NodeFeature.INFO, NodeFeature.SENSE),
6364
)
64-
self._loaded = True
6565
if await self.initialize():
6666
await self._loaded_callback(NodeEvent.LOADED, self.mac)
6767
return True

0 commit comments

Comments
 (0)