Correct typing in Zerproc and activate mypy (#53642)

This commit is contained in:
Milan Meulemans 2021-07-28 23:36:13 +02:00 committed by GitHub
parent e1c6ccb198
commit d40012f110
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 6 deletions

View file

@ -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()

View file

@ -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

View file

@ -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.*",
]