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:
epenet 2023-02-04 18:52:59 +01:00 committed by GitHub
parent 3d557b5583
commit f6c76372ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 72 additions and 29 deletions

View file

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