1
mirror of https://github.com/home-assistant/core synced 2024-08-02 23:40:32 +02:00

Activate mypy for Cloudflare (#54041)

This commit is contained in:
Milan Meulemans 2021-08-05 13:01:12 +02:00 committed by GitHub
parent 25eb27cb9f
commit debcc6689f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 1 additions and 7 deletions

View File

@ -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):

View File

@ -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

View File

@ -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.*",

View File

@ -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(