Skip to content

Commit 55c7933

Browse files
authored
fix: properly merge configuration data with options (#199)
The configuration option `scan_interval` can now override the `scan_interval` that was set during initial setup. fixes #198
1 parent 5aa3a8f commit 55c7933

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

custom_components/solakon_one/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
async def async_setup_entry(hass: HomeAssistant, entry: SolakonConfigEntry) -> bool:
1919
"""Set up Solakon ONE from a config entry."""
20-
hub = get_modbus_hub(hass, entry.options | entry.data)
20+
hub = get_modbus_hub(hass, entry.data | entry.options) # let options override data
2121

2222
try:
2323
await hub.async_setup()

0 commit comments

Comments
 (0)