We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f294db6 commit b24abcbCopy full SHA for b24abcb
custom_components/plugwise/__init__.py
@@ -158,13 +158,14 @@ async def async_migrate_plugwise_entry(
158
if entry.version == 1 and entry.minor_version < 2:
159
new_data = {**entry.data}
160
new_data[CONF_TIMEOUT] = get_timeout_for_version(coordinator.api.smile_version)
161
+ hass.config_entries.async_update_entry(
162
+ entry, data=new_data, minor_version=2, version=1
163
+ )
164
LOGGER.debug(
165
"Migration to version %s.%s successful",
166
entry.version,
167
entry.minor_version,
168
)
- hass.config_entries.async_update_entry(
- entry, data=new_data, minor_version=2, version=1
- )
169
+ return True
170
- return True
171
+ return False
0 commit comments