Remove sharkiq from mypy ignore list (#64509)

Co-authored-by: epenet <epenet@users.noreply.github.com>
pull/64516/head^2
epenet 2022-01-20 09:45:47 +01:00 committed by GitHub
parent 921a554b9e
commit 66c2520a94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 7 deletions

View File

@ -85,7 +85,8 @@ class SharkIqConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
if not errors:
entry = await self.async_set_unique_id(self.unique_id)
self.hass.config_entries.async_update_entry(entry, data=user_input)
if entry:
self.hass.config_entries.async_update_entry(entry, data=user_input)
return self.async_abort(reason="reauth_successful")

View File

@ -36,7 +36,7 @@ class SharkIqUpdateCoordinator(DataUpdateCoordinator):
sharkiq.serial_number: sharkiq for sharkiq in shark_vacs
}
self._config_entry = config_entry
self._online_dsns = set()
self._online_dsns: set[str] = set()
super().__init__(hass, _LOGGER, name=DOMAIN, update_interval=UPDATE_INTERVAL)

View File

@ -90,6 +90,8 @@ async def async_setup_entry(
class SharkVacuumEntity(CoordinatorEntity, StateVacuumEntity):
"""Shark IQ vacuum entity."""
coordinator: SharkIqUpdateCoordinator
def __init__(
self, sharkiq: SharkIqVacuum, coordinator: SharkIqUpdateCoordinator
) -> None:
@ -222,7 +224,7 @@ class SharkVacuumEntity(CoordinatorEntity, StateVacuumEntity):
await self.sharkiq.async_find_device()
@property
def fan_speed(self) -> str:
def fan_speed(self) -> str | None:
"""Return the current fan speed."""
fan_speed = None
speed_level = self.sharkiq.get_property_value(Properties.POWER_MODE)

View File

@ -2173,9 +2173,6 @@ ignore_errors = true
[mypy-homeassistant.components.ring.*]
ignore_errors = true
[mypy-homeassistant.components.sharkiq.*]
ignore_errors = true
[mypy-homeassistant.components.smartthings.*]
ignore_errors = true

View File

@ -66,7 +66,6 @@ IGNORED_MODULES: Final[list[str]] = [
"homeassistant.components.plum_lightpad.*",
"homeassistant.components.profiler.*",
"homeassistant.components.ring.*",
"homeassistant.components.sharkiq.*",
"homeassistant.components.smartthings.*",
"homeassistant.components.solaredge.*",
"homeassistant.components.sonos.*",