mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Use suggestd_value instead of default in Monoprice options flow (#35107)
This commit is contained in:
parent
5a2528b0f1
commit
90fbb150e7
@ -99,7 +99,9 @@ class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
|
||||
@core.callback
|
||||
def _key_for_source(index, source, previous_sources):
|
||||
if str(index) in previous_sources:
|
||||
key = vol.Optional(source, default=previous_sources[str(index)])
|
||||
key = vol.Optional(
|
||||
source, description={"suggested_value": previous_sources[str(index)]}
|
||||
)
|
||||
else:
|
||||
key = vol.Optional(source)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user