Skip to content

Commit b24abcb

Browse files
committed
Correct logger.debug placement
1 parent f294db6 commit b24abcb

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

custom_components/plugwise/__init__.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,13 +158,14 @@ async def async_migrate_plugwise_entry(
158158
if entry.version == 1 and entry.minor_version < 2:
159159
new_data = {**entry.data}
160160
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+
)
161164
LOGGER.debug(
162165
"Migration to version %s.%s successful",
163166
entry.version,
164167
entry.minor_version,
165168
)
166-
hass.config_entries.async_update_entry(
167-
entry, data=new_data, minor_version=2, version=1
168-
)
169+
return True
169170

170-
return True
171+
return False

0 commit comments

Comments
 (0)