Remove tado from mypy ignored modules (#64333)
* Remove tado from mypy ignored modules * Adjust typing Co-authored-by: epenet <epenet@users.noreply.github.com>pull/64340/head
parent
8e14f2037c
commit
24c07ccf15
|
@ -60,7 +60,7 @@ async def async_setup_entry(
|
|||
tado = hass.data[DOMAIN][entry.entry_id][DATA]
|
||||
devices = tado.devices
|
||||
zones = tado.zones
|
||||
entities = []
|
||||
entities: list[BinarySensorEntity] = []
|
||||
|
||||
# Create device sensors
|
||||
for device in devices:
|
||||
|
|
|
@ -13,7 +13,7 @@ import voluptuous as vol
|
|||
|
||||
from homeassistant.components.device_tracker import (
|
||||
DOMAIN,
|
||||
PLATFORM_SCHEMA,
|
||||
PLATFORM_SCHEMA as BASE_PLATFORM_SCHEMA,
|
||||
DeviceScanner,
|
||||
)
|
||||
from homeassistant.const import CONF_PASSWORD, CONF_USERNAME
|
||||
|
@ -29,7 +29,7 @@ CONF_HOME_ID = "home_id"
|
|||
|
||||
MIN_TIME_BETWEEN_SCANS = timedelta(seconds=30)
|
||||
|
||||
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
|
||||
PLATFORM_SCHEMA = BASE_PLATFORM_SCHEMA.extend(
|
||||
{
|
||||
vol.Required(CONF_USERNAME): cv.string,
|
||||
vol.Required(CONF_PASSWORD): cv.string,
|
||||
|
|
|
@ -63,7 +63,7 @@ async def async_setup_entry(
|
|||
|
||||
tado = hass.data[DOMAIN][entry.entry_id][DATA]
|
||||
zones = tado.zones
|
||||
entities = []
|
||||
entities: list[SensorEntity] = []
|
||||
|
||||
# Create home sensors
|
||||
entities.extend([TadoHomeSensor(tado, variable) for variable in HOME_SENSORS])
|
||||
|
|
3
mypy.ini
3
mypy.ini
|
@ -2318,9 +2318,6 @@ ignore_errors = true
|
|||
[mypy-homeassistant.components.system_log.*]
|
||||
ignore_errors = true
|
||||
|
||||
[mypy-homeassistant.components.tado.*]
|
||||
ignore_errors = true
|
||||
|
||||
[mypy-homeassistant.components.telegram_bot.*]
|
||||
ignore_errors = true
|
||||
|
||||
|
|
|
@ -118,7 +118,6 @@ IGNORED_MODULES: Final[list[str]] = [
|
|||
"homeassistant.components.stt.*",
|
||||
"homeassistant.components.system_health.*",
|
||||
"homeassistant.components.system_log.*",
|
||||
"homeassistant.components.tado.*",
|
||||
"homeassistant.components.telegram_bot.*",
|
||||
"homeassistant.components.template.*",
|
||||
"homeassistant.components.toon.*",
|
||||
|
|
Loading…
Reference in New Issue