From ca6dd09fc2001951787ddefaca3eaad4fed85c4e Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Thu, 20 Jan 2022 08:53:16 +0100 Subject: [PATCH] Remove rachio from mypy ignore list (#64521) * Adjust rachio * Adjust mypy-config Co-authored-by: epenet --- homeassistant/components/rachio/switch.py | 1 + mypy.ini | 3 --- script/hassfest/mypy_config.py | 1 - 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/homeassistant/components/rachio/switch.py b/homeassistant/components/rachio/switch.py index 65487ded792..55427741bf0 100644 --- a/homeassistant/components/rachio/switch.py +++ b/homeassistant/components/rachio/switch.py @@ -291,6 +291,7 @@ class RachioRainDelay(RachioSwitch): endtime = parse_datetime(args[0][0][KEY_RAIN_DELAY_END]) _LOGGER.debug("Rain delay expires at %s", endtime) self._state = True + assert endtime is not None self._cancel_update = async_track_point_in_utc_time( self.hass, self._delay_expiration, endtime ) diff --git a/mypy.ini b/mypy.ini index abe3ca7da9a..5e92d2bbe15 100644 --- a/mypy.ini +++ b/mypy.ini @@ -2176,9 +2176,6 @@ ignore_errors = true [mypy-homeassistant.components.profiler.*] ignore_errors = true -[mypy-homeassistant.components.rachio.*] -ignore_errors = true - [mypy-homeassistant.components.ring.*] ignore_errors = true diff --git a/script/hassfest/mypy_config.py b/script/hassfest/mypy_config.py index d17bdc97169..c4ed4722220 100644 --- a/script/hassfest/mypy_config.py +++ b/script/hassfest/mypy_config.py @@ -67,7 +67,6 @@ IGNORED_MODULES: Final[list[str]] = [ "homeassistant.components.plum_lightpad.*", "homeassistant.components.point.*", "homeassistant.components.profiler.*", - "homeassistant.components.rachio.*", "homeassistant.components.ring.*", "homeassistant.components.ruckus_unleashed.*", "homeassistant.components.screenlogic.*",