1
mirror of https://github.com/home-assistant/core synced 2024-08-02 23:40:32 +02:00

Remove tado from mypy ignored modules (#64333)

* Remove tado from mypy ignored modules

* Adjust typing

Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
epenet 2022-01-18 04:20:12 +01:00 committed by GitHub
parent 8e14f2037c
commit 24c07ccf15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 4 additions and 8 deletions

View File

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

View File

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

View File

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

View File

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

View File

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