Add back Netatmo public weather sensors (#34401)
* Add public weather sensors back in * Remove stale code * Cleanup after before adding entities * Fix pylint complaint * Add test for options flow * Change mode to listbox * Update .coveragerc * Address comments * Don't process empty list * Address comment * Fix mistake * Make signal unique * Make string more unique * Fix merge conflict
This commit is contained in:
1 parent
af6a4bb6cf
commit
155a5f7c26
9 files changed
+394
-67
No files matched your search
@@ -92,6 +92,10 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry):
|
||||
hass, entry
|
||||
)
|
||||
|
||||
# Set unique id if non was set (migration)
|
||||
if not entry.unique_id:
|
||||
hass.config_entries.async_update_entry(entry, unique_id=DOMAIN)
|
||||
|
||||
hass.data[DOMAIN][entry.entry_id] = {
|
||||
AUTH: api.ConfigEntryNetatmoAuth(hass, entry, implementation)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user