diff --git a/CHANGELOG.md b/CHANGELOG.md index 1fcb1d7c..447e8e77 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## Versions from 0.4x +### v0.55.7 - 2025-08-11 + +- Bugfixes and improvements via plugwise_usb [v0.44.10](https://github.com/plugwise/python-plugwise-usb/releases/tag/v0.44.10) + ### v0.55.6 - 2025-07-24 - Bugfixes and improvements via plugwise_usb [v0.44.9](https://github.com/plugwise/python-plugwise-usb/releases/tag/v0.44.9) diff --git a/custom_components/plugwise_usb/coordinator.py b/custom_components/plugwise_usb/coordinator.py index 8c3712f1..e0857ed6 100644 --- a/custom_components/plugwise_usb/coordinator.py +++ b/custom_components/plugwise_usb/coordinator.py @@ -1,9 +1,10 @@ """DataUpdateCoordinator for Plugwise USB-Stick.""" from collections import Counter +from collections.abc import Callable from datetime import timedelta import logging -from typing import Any, Callable +from typing import Any from plugwise_usb.api import PUSHING_FEATURES, NodeFeature, PlugwiseNode from plugwise_usb.exceptions import NodeError, NodeTimeout, StickError, StickTimeout diff --git a/custom_components/plugwise_usb/event.py b/custom_components/plugwise_usb/event.py index 876de520..8b6d1b3f 100644 --- a/custom_components/plugwise_usb/event.py +++ b/custom_components/plugwise_usb/event.py @@ -9,11 +9,11 @@ from plugwise_usb.api import NodeEvent, NodeFeature from homeassistant.components.event import ( - EventDeviceClass, - EventEntity, + EventDeviceClass, + EventEntity, EventEntityDescription, ) -from homeassistant.const import EntityCategory, Platform, UnitOfTime +from homeassistant.const import Platform from homeassistant.core import HomeAssistant, callback from homeassistant.helpers.entity_platform import AddEntitiesCallback @@ -141,8 +141,8 @@ def _handle_coordinator_update(self) -> None: ) return # SWITCH logic - state_value = getattr(data, "state" ) - group_value = getattr(data, "group" ) + state_value = data.state + group_value = data.group match self.entity_description.key: case "button_press_i_group_1": if state_value is True and group_value == 1: diff --git a/custom_components/plugwise_usb/manifest.json b/custom_components/plugwise_usb/manifest.json index 0cb24f78..5a7d5aed 100644 --- a/custom_components/plugwise_usb/manifest.json +++ b/custom_components/plugwise_usb/manifest.json @@ -8,6 +8,6 @@ "integration_type": "hub", "iot_class": "local_polling", "loggers": ["plugwise_usb"], - "requirements": ["plugwise-usb==0.44.9"], - "version": "0.55.6" + "requirements": ["plugwise-usb==0.44.10"], + "version": "0.55.7" }