Skip to content

Commit bd01f85

Browse files
committed
Change updating of unique_id due to changes in Smile.py
1 parent dd6673a commit bd01f85

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

custom_components/plugwise/__init__.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,7 @@ async def async_update_data():
109109

110110
# Migrate to a valid unique_id when needed
111111
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:
112+
if api.smile_version[0] != "1.8.0":
117113
hass.config_entries.async_update_entry(
118114
entry, unique_id=api.smile_hostname
119115
)

0 commit comments

Comments
 (0)