From 722e97cd5a6ed1acb1d3026f903fdd2dfc5796ec Mon Sep 17 00:00:00 2001 From: virtualdj Date: Thu, 9 Mar 2023 17:25:39 +0100 Subject: [PATCH] Miglioramento configurazione a singola istanza --- custom_components/pun_sensor/config_flow.py | 2 +- custom_components/pun_sensor/manifest.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/pun_sensor/config_flow.py b/custom_components/pun_sensor/config_flow.py index 3102291..32d19ec 100644 --- a/custom_components/pun_sensor/config_flow.py +++ b/custom_components/pun_sensor/config_flow.py @@ -52,7 +52,7 @@ def async_get_options_flow(entry: config_entries.ConfigEntry) -> PUNOptionsFlow: async def async_step_user(self, user_input=None): """Gestione prima configurazione da Home Assistant""" # Controlla che l'integrazione non venga eseguita piĆ¹ volte - await self.async_set_unique_id('PUN') + await self.async_set_unique_id(DOMAIN) self._abort_if_unique_id_configured() errors = {} diff --git a/custom_components/pun_sensor/manifest.json b/custom_components/pun_sensor/manifest.json index d1071e2..c00b91a 100644 --- a/custom_components/pun_sensor/manifest.json +++ b/custom_components/pun_sensor/manifest.json @@ -7,5 +7,5 @@ "config_flow": true, "requirements": ["holidays", "bs4"], "iot_class": "local_polling", - "version": "0.3.0" + "version": "0.3.1" }