File tree Expand file tree Collapse file tree
custom_components/novastar_h Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2828from .discovery import DiscoveredDevice , scan_network
2929
3030_LOGGER = logging .getLogger (__name__ )
31- _OPT_LAYER_COUNT_UI = "layer_count"
31+ _OPT_LAYER_COUNT_UI_LEGACY = "layer_count"
32+ _OPT_LAYER_COUNT_UI = "Number of Layers to pre-populate for input selection"
3233
3334
3435class NovastarConfigFlow (ConfigFlow , domain = DOMAIN ):
@@ -337,6 +338,10 @@ async def async_step_init(
337338 options [CONF_LAYER_SELECT_PREPOPULATE_COUNT ] = options .pop (
338339 _OPT_LAYER_COUNT_UI
339340 )
341+ if _OPT_LAYER_COUNT_UI_LEGACY in options :
342+ options [CONF_LAYER_SELECT_PREPOPULATE_COUNT ] = options .pop (
343+ _OPT_LAYER_COUNT_UI_LEGACY
344+ )
340345 return self .async_create_entry (title = "" , data = options )
341346
342347 # Get current value from options, falling back to data
Original file line number Diff line number Diff line change 2121 }
2222 ],
2323 "zeroconf" : [" _novastar._tcp.local." ],
24- "version" : " 0.2.31 "
24+ "version" : " 0.2.32 "
2525}
You can’t perform that action at this time.
0 commit comments