synthax error
This commit is contained in:
parent
8ef7d61ac7
commit
39bfd5dfbb
@ -49,10 +49,14 @@ class LinkyTariffConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
|
|||||||
self._abort_if_unique_id_configured()
|
self._abort_if_unique_id_configured()
|
||||||
return self.async_create_entry(title="Linky Tariff", data=user_input)
|
return self.async_create_entry(title="Linky Tariff", data=user_input)
|
||||||
|
|
||||||
|
device_options = {
|
||||||
|
ieee: name for ieee, name in devices
|
||||||
|
}
|
||||||
|
|
||||||
return self.async_show_form(
|
return self.async_show_form(
|
||||||
step_id="user",
|
step_id="user",
|
||||||
data_schema=vol.Schema({
|
data_schema=vol.Schema({
|
||||||
vol.Required(CONF_IEEE): vol.In(dict(devices)),
|
vol.Required(CONF_IEEE): vol.In(device_options),
|
||||||
vol.Optional(
|
vol.Optional(
|
||||||
CONF_POLL_INTERVAL,
|
CONF_POLL_INTERVAL,
|
||||||
default=DEFAULT_POLL_INTERVAL
|
default=DEFAULT_POLL_INTERVAL
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user