mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 09:17:10 +00:00
Remove sharkiq from mypy ignore list (#64509)
Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
parent
921a554b9e
commit
66c2520a94
@ -85,6 +85,7 @@ class SharkIqConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
|
|||||||
|
|
||||||
if not errors:
|
if not errors:
|
||||||
entry = await self.async_set_unique_id(self.unique_id)
|
entry = await self.async_set_unique_id(self.unique_id)
|
||||||
|
if entry:
|
||||||
self.hass.config_entries.async_update_entry(entry, data=user_input)
|
self.hass.config_entries.async_update_entry(entry, data=user_input)
|
||||||
|
|
||||||
return self.async_abort(reason="reauth_successful")
|
return self.async_abort(reason="reauth_successful")
|
||||||
|
@ -36,7 +36,7 @@ class SharkIqUpdateCoordinator(DataUpdateCoordinator):
|
|||||||
sharkiq.serial_number: sharkiq for sharkiq in shark_vacs
|
sharkiq.serial_number: sharkiq for sharkiq in shark_vacs
|
||||||
}
|
}
|
||||||
self._config_entry = config_entry
|
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)
|
super().__init__(hass, _LOGGER, name=DOMAIN, update_interval=UPDATE_INTERVAL)
|
||||||
|
|
||||||
|
@ -90,6 +90,8 @@ async def async_setup_entry(
|
|||||||
class SharkVacuumEntity(CoordinatorEntity, StateVacuumEntity):
|
class SharkVacuumEntity(CoordinatorEntity, StateVacuumEntity):
|
||||||
"""Shark IQ vacuum entity."""
|
"""Shark IQ vacuum entity."""
|
||||||
|
|
||||||
|
coordinator: SharkIqUpdateCoordinator
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self, sharkiq: SharkIqVacuum, coordinator: SharkIqUpdateCoordinator
|
self, sharkiq: SharkIqVacuum, coordinator: SharkIqUpdateCoordinator
|
||||||
) -> None:
|
) -> None:
|
||||||
@ -222,7 +224,7 @@ class SharkVacuumEntity(CoordinatorEntity, StateVacuumEntity):
|
|||||||
await self.sharkiq.async_find_device()
|
await self.sharkiq.async_find_device()
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def fan_speed(self) -> str:
|
def fan_speed(self) -> str | None:
|
||||||
"""Return the current fan speed."""
|
"""Return the current fan speed."""
|
||||||
fan_speed = None
|
fan_speed = None
|
||||||
speed_level = self.sharkiq.get_property_value(Properties.POWER_MODE)
|
speed_level = self.sharkiq.get_property_value(Properties.POWER_MODE)
|
||||||
|
3
mypy.ini
3
mypy.ini
@ -2173,9 +2173,6 @@ ignore_errors = true
|
|||||||
[mypy-homeassistant.components.ring.*]
|
[mypy-homeassistant.components.ring.*]
|
||||||
ignore_errors = true
|
ignore_errors = true
|
||||||
|
|
||||||
[mypy-homeassistant.components.sharkiq.*]
|
|
||||||
ignore_errors = true
|
|
||||||
|
|
||||||
[mypy-homeassistant.components.smartthings.*]
|
[mypy-homeassistant.components.smartthings.*]
|
||||||
ignore_errors = true
|
ignore_errors = true
|
||||||
|
|
||||||
|
@ -66,7 +66,6 @@ IGNORED_MODULES: Final[list[str]] = [
|
|||||||
"homeassistant.components.plum_lightpad.*",
|
"homeassistant.components.plum_lightpad.*",
|
||||||
"homeassistant.components.profiler.*",
|
"homeassistant.components.profiler.*",
|
||||||
"homeassistant.components.ring.*",
|
"homeassistant.components.ring.*",
|
||||||
"homeassistant.components.sharkiq.*",
|
|
||||||
"homeassistant.components.smartthings.*",
|
"homeassistant.components.smartthings.*",
|
||||||
"homeassistant.components.solaredge.*",
|
"homeassistant.components.solaredge.*",
|
||||||
"homeassistant.components.sonos.*",
|
"homeassistant.components.sonos.*",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user