Skip to content

Commit 4a9a6b3

Browse files
committed
call super().load to enable configuratin as NodeFeature.BATTERY
1 parent 0971739 commit 4a9a6b3

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

plugwise_usb/nodes/sense.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,7 @@ async def load(self) -> bool:
5252
return True
5353

5454
self._node_info.is_battery_powered = True
55-
if self._cache_enabled:
56-
_LOGGER.debug("Loading Sense node %s from cache", self._node_info.mac)
57-
await self._load_from_cache()
58-
else:
59-
self._load_defaults()
60-
self._loaded = True
55+
await super().load()
6156
self._setup_protocol(
6257
SENSE_FIRMWARE_SUPPORT,
6358
(NodeFeature.INFO, NodeFeature.SENSE),

0 commit comments

Comments
 (0)