We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd6673a commit bd01f85Copy full SHA for bd01f85
custom_components/plugwise/__init__.py
@@ -109,11 +109,7 @@ async def async_update_data():
109
110
# Migrate to a valid unique_id when needed
111
if entry.unique_id is None:
112
- if api.smile_version[0] == "2.5.9":
113
- hass.config_entries.async_update_entry(
114
- entry, unique_id=api.gateway_id
115
- )
116
- else:
+ if api.smile_version[0] != "1.8.0":
117
hass.config_entries.async_update_entry(
118
entry, unique_id=api.smile_hostname
119
)
0 commit comments