diff --git a/CHANGELOG.md b/CHANGELOG.md index 9939d04b..3fc81ea3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## v0.57.0 - 2025-09-12 + +- Activate new Sense feature, report interval setting via PR [331](https://github.com/plugwise/plugwise_usb-beta/pull/331) +- Link to plugwise_usb [v0.46.0](https://github.com/plugwise/python-plugwise-usb/releases/tag/v0.46.0) + ## v0.56.0 - 2025-09-03 - Activate new Sense hysteresis based switch action via PR [326](https://github.com/plugwise/plugwise_usb-beta/pull/326) diff --git a/custom_components/plugwise_usb/manifest.json b/custom_components/plugwise_usb/manifest.json index a6c095bd..b6738a38 100644 --- a/custom_components/plugwise_usb/manifest.json +++ b/custom_components/plugwise_usb/manifest.json @@ -9,6 +9,6 @@ "iot_class": "local_polling", "issue_tracker": "https://github.com/plugwise/python-plugwise-usb/issues", "loggers": ["plugwise_usb"], - "requirements": ["plugwise-usb==0.45.0"], - "version": "0.56.0" + "requirements": ["plugwise-usb==0.46.0"], + "version": "0.57.0" } diff --git a/custom_components/plugwise_usb/number.py b/custom_components/plugwise_usb/number.py index f5d249f8..8735b854 100644 --- a/custom_components/plugwise_usb/number.py +++ b/custom_components/plugwise_usb/number.py @@ -156,6 +156,19 @@ class PlugwiseNumberEntityDescription( async_number_type="float", mode="box", ), + PlugwiseNumberEntityDescription( + key="report_interval", + translation_key="sense_report_interval", + async_number_fn="set_report_interval", + node_feature=NodeFeature.SENSE_HYSTERESIS, + device_class=NumberDeviceClass.DURATION, + native_unit_of_measurement=UnitOfTime.MINUTES, + entity_category=EntityCategory.CONFIG, + native_max_value=60, + native_min_value=1, + native_step=1, + mode="box", + ), ) diff --git a/custom_components/plugwise_usb/strings.json b/custom_components/plugwise_usb/strings.json index 4dc8f062..bb1ecefc 100644 --- a/custom_components/plugwise_usb/strings.json +++ b/custom_components/plugwise_usb/strings.json @@ -172,6 +172,9 @@ }, "sense_temperature_lower_bound": { "name": "Temperature lower boundary value" + }, + "sense_report_interval": { + "name": "Measurement reporting interval" } }, "button": { diff --git a/custom_components/plugwise_usb/translations/en.json b/custom_components/plugwise_usb/translations/en.json index d7dcc8f8..c6517192 100644 --- a/custom_components/plugwise_usb/translations/en.json +++ b/custom_components/plugwise_usb/translations/en.json @@ -172,6 +172,9 @@ }, "sense_temperature_lower_bound": { "name": "Temperature lower boundary value" + }, + "sense_report_interval": { + "name": "Measurement reporting interval" } }, "button": { diff --git a/custom_components/plugwise_usb/translations/nl.json b/custom_components/plugwise_usb/translations/nl.json index b6638dcb..92436dcb 100644 --- a/custom_components/plugwise_usb/translations/nl.json +++ b/custom_components/plugwise_usb/translations/nl.json @@ -172,6 +172,9 @@ }, "sense_temperature_lower_bound": { "name": "Lage schakelpunt temperatuur" + }, + "sense_report_interval": { + "name": "Meetrapportage-interval" } }, "button": { diff --git a/pyproject.toml b/pyproject.toml index c8b8a02d..20dbc58f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "plugwise_usb-beta" -version = "0.55.13" +version = "0.57.0" description = "Plugwise USB custom_component (BETA)" readme = "README.md" requires-python = ">=3.13" @@ -544,8 +544,6 @@ ignore = [ "TRY003", # Avoid specifying long messages outside the exception class "TRY400", # Use `logging.exception` instead of `logging.error` - # Ignored due to performance: https://github.com/charliermarsh/ruff/issues/2923 - "UP038", # Use `X | Y` in `isinstance` call instead of `(X, Y)` # May conflict with the formatter, https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules "W191",