From 939bdd8c6c15f76d30dfa31fb4348e85265872d6 Mon Sep 17 00:00:00 2001 From: Stephen Powis Date: Wed, 20 May 2026 07:35:48 +0900 Subject: [PATCH 1/2] Remove device_class restriction for temperature sensor during configuration --- CHANGELOG.md | 14 ++++++++++++++ .../pvoutput_publisher/config_flow.py | 6 +++--- custom_components/pvoutput_publisher/manifest.json | 2 +- 3 files changed, 18 insertions(+), 4 deletions(-) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..84e76a5 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,14 @@ +# Change Log +The format is based on [Keep a Changelog](http://keepachangelog.com/) +and this project adheres to [Semantic Versioning](http://semver.org/). + +## 1.0.2 (Unreleased) + +### Bugfixes +- Removes `device_class=temperature` restriction when picking your temperature sensor. + +## 1.0.1 (03/23/2026) +Setup and submitted to HACs! + +## 1.0.0 (03/23/2026) +Initial internal release! diff --git a/custom_components/pvoutput_publisher/config_flow.py b/custom_components/pvoutput_publisher/config_flow.py index 8ee0edc..f66f542 100644 --- a/custom_components/pvoutput_publisher/config_flow.py +++ b/custom_components/pvoutput_publisher/config_flow.py @@ -35,11 +35,11 @@ def _get_system_schema(existing_data=None): if existing_data.get(CONF_TEMPERATURE_ENTITY_ID): schema[vol.Optional(CONF_TEMPERATURE_ENTITY_ID, default=existing_data.get(CONF_TEMPERATURE_ENTITY_ID))] = selector.EntitySelector( - selector.EntitySelectorConfig(domain="sensor", device_class="temperature") + selector.EntitySelectorConfig(domain="sensor") ) else: schema[vol.Optional(CONF_TEMPERATURE_ENTITY_ID)] = selector.EntitySelector( - selector.EntitySelectorConfig(domain="sensor", device_class="temperature") + selector.EntitySelectorConfig(domain="sensor") ) schema[vol.Required(CONF_FREQUENCY, default=str(existing_data.get(CONF_FREQUENCY, "5")))] = vol.In(frequency_options) @@ -54,7 +54,7 @@ def _get_system_schema(existing_data=None): selector.EntitySelectorConfig(domain="sensor", device_class=["power", "energy"]) ) schema[vol.Optional(CONF_TEMPERATURE_ENTITY_ID)] = selector.EntitySelector( - selector.EntitySelectorConfig(domain="sensor", device_class="temperature") + selector.EntitySelectorConfig(domain="sensor") ) schema[vol.Required(CONF_FREQUENCY, default="5")] = vol.In(frequency_options) diff --git a/custom_components/pvoutput_publisher/manifest.json b/custom_components/pvoutput_publisher/manifest.json index e597a04..29bf985 100644 --- a/custom_components/pvoutput_publisher/manifest.json +++ b/custom_components/pvoutput_publisher/manifest.json @@ -9,5 +9,5 @@ "iot_class": "cloud_push", "issue_tracker": "https://github.com/SourceLabOrg/HomeAssistant-PVOutputPublisher/issues", "requirements": [], - "version": "1.0.1" + "version": "1.0.2" } From 1849b1b3fc1bf1efbe743ebd5079b83bbdf57e50 Mon Sep 17 00:00:00 2001 From: Stephen Powis Date: Wed, 20 May 2026 07:36:15 +0900 Subject: [PATCH 2/2] update changelog --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 84e76a5..1f9f2a6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## 1.0.2 (Unreleased) ### Bugfixes -- Removes `device_class=temperature` restriction when picking your temperature sensor. +- Removes `device_class=temperature` restriction when picking your temperature sensor. (Issue#1)[https://github.com/SourceLabOrg/HomeAssistant-PVOutputPublisher/issues/1] ## 1.0.1 (03/23/2026) Setup and submitted to HACs!