Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
# Changelog

## v0.44.1

- PR [#258](https://github.com/plugwise/python-plugwise-usb/pull/258)
- Sense: make sure NodeFeature.BATTERY is called and configuration parameters are propagated properly

## v0.44.0

- PR [#256](https://github.com/plugwise/python-plugwise-usb/pull/256) Implement PlugWise Sense product
Expand Down
20 changes: 8 additions & 12 deletions plugwise_usb/nodes/sense.py
Original file line numberDiff line numberDiff line change
Expand Up@@ -51,21 +51,17 @@ async def load(self) -> bool:
if self._loaded:
return True

self._node_info.is_battery_powered = True
if self._cache_enabled:
_LOGGER.debug("Loading Sense node %s from cache", self._node_info.mac)
await self._load_from_cache()
else:
self._load_defaults()
self._loaded = True
self._setup_protocol(
SENSE_FIRMWARE_SUPPORT,
(NodeFeature.INFO, NodeFeature.SENSE),
)
_LOGGER.debug("Loading Sense node %s", self._node_info.mac)
if not await super().load():
_LOGGER.debug("Load Sense base node failed")
return False

self._setup_protocol(SENSE_FIRMWARE_SUPPORT, SENSE_FEATURES)
if await self.initialize():
await self._loaded_callback(NodeEvent.LOADED, self.mac)
return True
_LOGGER.debug("Loading of Sense node %s failed", self._node_info.mac)

_LOGGER.debug("Load Sense node %s failed", self._node_info.mac)
return False

@raise_not_loaded
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line numberDiff line numberDiff line change
Expand Up@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "plugwise_usb"
version = "0.44.0"
version = "0.44.1"
license = "MIT"
keywords = ["home", "automation", "plugwise", "module", "usb"]
classifiers = [
Expand Down