mirror of
https://github.com/home-assistant/core.git
synced 2025-07-31 17:18:23 +00:00
dry
This commit is contained in:
parent
41a67530c6
commit
2d9faa3e71
@ -440,7 +440,9 @@ class EsphomeFlowHandler(ConfigFlow, domain=DOMAIN):
|
|||||||
return self.async_create_entry(
|
return self.async_create_entry(
|
||||||
title=self._name,
|
title=self._name,
|
||||||
data=self._async_make_config_data(),
|
data=self._async_make_config_data(),
|
||||||
options=self._async_make_default_options(),
|
options={
|
||||||
|
CONF_ALLOW_SERVICE_CALLS: DEFAULT_NEW_CONFIG_ALLOW_ALLOW_SERVICE_CALLS,
|
||||||
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
@callback
|
@callback
|
||||||
@ -455,13 +457,6 @@ class EsphomeFlowHandler(ConfigFlow, domain=DOMAIN):
|
|||||||
CONF_DEVICE_NAME: self._device_name,
|
CONF_DEVICE_NAME: self._device_name,
|
||||||
}
|
}
|
||||||
|
|
||||||
@callback
|
|
||||||
def _async_make_default_options(self) -> dict[str, Any]:
|
|
||||||
"""Return default options for the entry."""
|
|
||||||
return {
|
|
||||||
CONF_ALLOW_SERVICE_CALLS: DEFAULT_NEW_CONFIG_ALLOW_ALLOW_SERVICE_CALLS,
|
|
||||||
}
|
|
||||||
|
|
||||||
async def async_step_validated_connection(self) -> ConfigFlowResult:
|
async def async_step_validated_connection(self) -> ConfigFlowResult:
|
||||||
"""Handle validated connection."""
|
"""Handle validated connection."""
|
||||||
if self.source == SOURCE_RECONFIGURE:
|
if self.source == SOURCE_RECONFIGURE:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user