diff --git a/homeassistant/components/home_plus_control/__init__.py b/homeassistant/components/home_plus_control/__init__.py index 78e31c83caa..e222b65e293 100644 --- a/homeassistant/components/home_plus_control/__init__.py +++ b/homeassistant/components/home_plus_control/__init__.py @@ -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] = [] diff --git a/homeassistant/components/home_plus_control/api.py b/homeassistant/components/home_plus_control/api.py index d9db95323de..9f092b28920 100644 --- a/homeassistant/components/home_plus_control/api.py +++ b/homeassistant/components/home_plus_control/api.py @@ -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, diff --git a/mypy.ini b/mypy.ini index 38cb7d4c7f0..f29bcf92720 100644 --- a/mypy.ini +++ b/mypy.ini @@ -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 diff --git a/script/hassfest/mypy_config.py b/script/hassfest/mypy_config.py index d540ed61cd8..f058cfd391f 100644 --- a/script/hassfest/mypy_config.py +++ b/script/hassfest/mypy_config.py @@ -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",