Correct typing in Zerproc and activate mypy (#53642)
This commit is contained in:
parent
e1c6ccb198
commit
d40012f110
3 changed files with 1 additions and 6 deletions
|
@ -16,7 +16,6 @@ from homeassistant.components.light import (
|
|||
from homeassistant.config_entries import ConfigEntry
|
||||
from homeassistant.const import EVENT_HOMEASSISTANT_STOP
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.helpers.entity import Entity
|
||||
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||
from homeassistant.helpers.event import async_track_time_interval
|
||||
import homeassistant.util.color as color_util
|
||||
|
@ -30,7 +29,7 @@ SUPPORT_ZERPROC = SUPPORT_BRIGHTNESS | SUPPORT_COLOR
|
|||
DISCOVERY_INTERVAL = timedelta(seconds=60)
|
||||
|
||||
|
||||
async def discover_entities(hass: HomeAssistant) -> list[Entity]:
|
||||
async def discover_entities(hass: HomeAssistant) -> list[ZerprocLight]:
|
||||
"""Attempt to discover new lights."""
|
||||
lights = await pyzerproc.discover()
|
||||
|
||||
|
|
3
mypy.ini
3
mypy.ini
|
@ -1777,9 +1777,6 @@ ignore_errors = true
|
|||
[mypy-homeassistant.components.yeelight.*]
|
||||
ignore_errors = true
|
||||
|
||||
[mypy-homeassistant.components.zerproc.*]
|
||||
ignore_errors = true
|
||||
|
||||
[mypy-homeassistant.components.zha.*]
|
||||
ignore_errors = true
|
||||
|
||||
|
|
|
@ -192,7 +192,6 @@ IGNORED_MODULES: Final[list[str]] = [
|
|||
"homeassistant.components.xiaomi_miio.*",
|
||||
"homeassistant.components.yamaha.*",
|
||||
"homeassistant.components.yeelight.*",
|
||||
"homeassistant.components.zerproc.*",
|
||||
"homeassistant.components.zha.*",
|
||||
"homeassistant.components.zwave.*",
|
||||
]
|
||||
|
|
Loading…
Add table
Reference in a new issue