Ensure hass is typed (#87068)
* Ensure hass is typed * Adjust pilight * Adjust homeassistant scene * Adjust hassio * Adjust gree * Adjust google_maps * Adjust energyzero * Adjust harmony * Adjust mobile_app
This commit is contained in:
parent
3d557b5583
commit
f6c76372ce
9 changed files with 72 additions and 29 deletions
|
@ -9,6 +9,7 @@ from aioharmony.const import ClientCallbackType, SendCommandDevice
|
|||
import aioharmony.exceptions as aioexc
|
||||
from aioharmony.harmonyapi import HarmonyAPI as HarmonyClient
|
||||
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.exceptions import ConfigEntryNotReady
|
||||
from homeassistant.helpers.entity import DeviceInfo
|
||||
|
||||
|
@ -23,7 +24,9 @@ class HarmonyData(HarmonySubscriberMixin):
|
|||
|
||||
_client: HarmonyClient
|
||||
|
||||
def __init__(self, hass, address: str, name: str, unique_id: str | None) -> None:
|
||||
def __init__(
|
||||
self, hass: HomeAssistant, address: str, name: str, unique_id: str | None
|
||||
) -> None:
|
||||
"""Initialize a data object."""
|
||||
super().__init__(hass)
|
||||
self._name = name
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue