diff --git a/homeassistant/components/cloudflare/config_flow.py b/homeassistant/components/cloudflare/config_flow.py index 2a369fe65e0..27a22dbc5bd 100644 --- a/homeassistant/components/cloudflare/config_flow.py +++ b/homeassistant/components/cloudflare/config_flow.py @@ -173,7 +173,6 @@ class CloudflareConfigFlow(ConfigFlow, domain=DOMAIN): async def async_step_records(self, user_input: dict | None = None): """Handle the picking the zone records.""" - errors = {} if user_input is not None: self.cloudflare_config.update(user_input) @@ -183,7 +182,6 @@ class CloudflareConfigFlow(ConfigFlow, domain=DOMAIN): return self.async_show_form( step_id="records", data_schema=_records_schema(self.records), - errors=errors, ) async def _async_validate_or_error(self, config): diff --git a/mypy.ini b/mypy.ini index 671a6cbc9a7..7f0a932f0af 100644 --- a/mypy.ini +++ b/mypy.ini @@ -1299,9 +1299,6 @@ ignore_errors = true [mypy-homeassistant.components.cloud.*] ignore_errors = true -[mypy-homeassistant.components.cloudflare.*] -ignore_errors = true - [mypy-homeassistant.components.config.*] ignore_errors = true diff --git a/script/hassfest/mypy_config.py b/script/hassfest/mypy_config.py index 5f456829725..23967721053 100644 --- a/script/hassfest/mypy_config.py +++ b/script/hassfest/mypy_config.py @@ -29,7 +29,6 @@ IGNORED_MODULES: Final[list[str]] = [ "homeassistant.components.cert_expiry.*", "homeassistant.components.climacell.*", "homeassistant.components.cloud.*", - "homeassistant.components.cloudflare.*", "homeassistant.components.config.*", "homeassistant.components.conversation.*", "homeassistant.components.deconz.*", diff --git a/tests/components/cloudflare/test_config_flow.py b/tests/components/cloudflare/test_config_flow.py index 230f4c3647f..16177850ad5 100644 --- a/tests/components/cloudflare/test_config_flow.py +++ b/tests/components/cloudflare/test_config_flow.py @@ -55,7 +55,7 @@ async def test_user_form(hass, cfupdate_flow): assert result["type"] == RESULT_TYPE_FORM assert result["step_id"] == "records" - assert result["errors"] == {} + assert result["errors"] is None with _patch_async_setup_entry() as mock_setup_entry: result = await hass.config_entries.flow.async_configure(