This commit is contained in:
J. Nick Koston 2025-04-16 21:05:35 -10:00
parent 41a67530c6
commit 2d9faa3e71
No known key found for this signature in database

View File

@ -440,7 +440,9 @@ class EsphomeFlowHandler(ConfigFlow, domain=DOMAIN):
return self.async_create_entry(
title=self._name,
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
@ -455,13 +457,6 @@ class EsphomeFlowHandler(ConfigFlow, domain=DOMAIN):
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:
"""Handle validated connection."""
if self.source == SOURCE_RECONFIGURE: