Skip to content

Commit 139fdbc

Browse files
committed
fix: do not migrate options
1 parent e11f913 commit 139fdbc

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

custom_components/hella_onyx/__init__.py

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -141,29 +141,6 @@ async def async_migrate_entry(hass, config_entry: ConfigEntry) -> bool:
141141
config_entry.version = 2
142142
config_entry.minor_version = 1
143143

144-
if config_entry.version == 2 and config_entry.minor_version == 1:
145-
old_options = {**config_entry.options}
146-
147-
new_options = {
148-
CONF_SCAN_INTERVAL: old_options.get(
149-
CONF_SCAN_INTERVAL, DEFAULT_SCAN_INTERVAL
150-
),
151-
CONF_MIN_DIM_DURATION: old_options.get(
152-
CONF_MIN_DIM_DURATION, DEFAULT_MIN_DIM_DURATION
153-
),
154-
CONF_MAX_DIM_DURATION: old_options.get(
155-
CONF_MAX_DIM_DURATION, DEFAULT_MAX_DIM_DURATION
156-
),
157-
CONF_ADDITIONAL_DELAY: old_options.get(
158-
CONF_ADDITIONAL_DELAY, DEFAULT_ADDITIONAL_DELAY
159-
),
160-
CONF_FORCE_UPDATE: old_options.get(CONF_FORCE_UPDATE, False),
161-
}
162-
config_entry.options = new_options
163-
164-
config_entry.version = 2
165-
config_entry.minor_version = 2
166-
167144
_LOGGER.info(
168145
"migration to version %d.%d successful",
169146
config_entry.version,

0 commit comments

Comments
 (0)