Skip to content

Commit 9fe07a4

Browse files
author
Ted Roberts
committed
Force friendly layer count label in options UI (v0.2.32)
1 parent d297221 commit 9fe07a4

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

custom_components/novastar_h/config_flow.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
from .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

3435
class 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

custom_components/novastar_h/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@
2121
}
2222
],
2323
"zeroconf": ["_novastar._tcp.local."],
24-
"version": "0.2.31"
24+
"version": "0.2.32"
2525
}

0 commit comments

Comments
 (0)