Skip to content

Commit

Permalink
Miglioramento configurazione a singola istanza
Browse files Browse the repository at this point in the history
  • Loading branch information
virtualdj committed Mar 9, 2023
1 parent b694335 commit 722e97c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion custom_components/pun_sensor/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {}
Expand Down
2 changes: 1 addition & 1 deletion custom_components/pun_sensor/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
"config_flow": true,
"requirements": ["holidays", "bs4"],
"iot_class": "local_polling",
"version": "0.3.0"
"version": "0.3.1"
}

0 comments on commit 722e97c

Please sign in to comment.