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:
parent
25eb27cb9f
commit
debcc6689f
@ -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):
|
||||
|
3
mypy.ini
3
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
|
||||
|
||||
|
@ -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.*",
|
||||
|
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user