Remove home_plus_control from mypy ignore list (#74448)

This commit is contained in:
epenet 2022-07-06 21:45:54 +02:00 committed by GitHub
parent 332cf3cd2d
commit 5e63a44e71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 9 deletions

View File

@ -83,7 +83,8 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
api = hass_entry_data[API] = HomePlusControlAsyncApi(hass, entry, implementation)
# Set of entity unique identifiers of this integration
uids = hass_entry_data[ENTITY_UIDS] = set()
uids: set[str] = set()
hass_entry_data[ENTITY_UIDS] = uids
# Integration dispatchers
hass_entry_data[DISPATCHER_REMOVERS] = []

View File

@ -5,6 +5,7 @@ from homeassistant import config_entries, core
from homeassistant.helpers import aiohttp_client, config_entry_oauth2_flow
from .const import DEFAULT_UPDATE_INTERVALS
from .helpers import HomePlusControlOAuth2Implementation
class HomePlusControlAsyncApi(HomePlusControlAPI):
@ -40,6 +41,8 @@ class HomePlusControlAsyncApi(HomePlusControlAPI):
hass, config_entry, implementation
)
assert isinstance(implementation, HomePlusControlOAuth2Implementation)
# Create the API authenticated client - external library
super().__init__(
subscription_key=implementation.subscription_key,

View File

@ -2695,12 +2695,6 @@ ignore_errors = true
[mypy-homeassistant.components.hassio.websocket_api]
ignore_errors = true
[mypy-homeassistant.components.home_plus_control]
ignore_errors = true
[mypy-homeassistant.components.home_plus_control.api]
ignore_errors = true
[mypy-homeassistant.components.icloud]
ignore_errors = true

View File

@ -40,8 +40,6 @@ IGNORED_MODULES: Final[list[str]] = [
"homeassistant.components.hassio.sensor",
"homeassistant.components.hassio.system_health",
"homeassistant.components.hassio.websocket_api",
"homeassistant.components.home_plus_control",
"homeassistant.components.home_plus_control.api",
"homeassistant.components.icloud",
"homeassistant.components.icloud.account",
"homeassistant.components.icloud.device_tracker",