Activate mypy for Proxmox VE (#53955)

This commit is contained in:
Milan Meulemans 2021-08-10 12:36:20 +02:00 committed by GitHub
parent e5f884efd1
commit 9c29d9f8eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 5 deletions

View File

@ -1,4 +1,6 @@
"""Support for Proxmox VE."""
from __future__ import annotations
from datetime import timedelta
import logging
@ -132,7 +134,8 @@ async def async_setup(hass: HomeAssistant, config: dict):
await hass.async_add_executor_job(build_client)
coordinators = hass.data[DOMAIN][COORDINATORS] = {}
coordinators: dict[str, dict[str, dict[int, DataUpdateCoordinator]]] = {}
hass.data[DOMAIN][COORDINATORS] = coordinators
# Create a coordinator for each vm/container
for host_config in config[DOMAIN]:

View File

@ -1592,9 +1592,6 @@ ignore_errors = true
[mypy-homeassistant.components.profiler.*]
ignore_errors = true
[mypy-homeassistant.components.proxmoxve.*]
ignore_errors = true
[mypy-homeassistant.components.rachio.*]
ignore_errors = true

View File

@ -123,7 +123,6 @@ IGNORED_MODULES: Final[list[str]] = [
"homeassistant.components.plum_lightpad.*",
"homeassistant.components.point.*",
"homeassistant.components.profiler.*",
"homeassistant.components.proxmoxve.*",
"homeassistant.components.rachio.*",
"homeassistant.components.ring.*",
"homeassistant.components.rpi_power.*",