Improve type hints in whirlpool (#87169)

Imrpove type hints in whirlpool
This commit is contained in:
epenet 2023-02-02 22:32:40 +01:00 committed by GitHub
parent 8a58d1d321
commit 111a77893e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -108,13 +108,13 @@ class AirConEntity(ClimateEntity):
def __init__(
self,
hass,
said,
name,
hass: HomeAssistant,
said: str,
name: str | None,
backend_selector: BackendSelector,
auth: Auth,
session: ClientSession,
):
) -> None:
"""Initialize the entity."""
self._aircon = Aircon(backend_selector, auth, said, session)
self.entity_id = generate_entity_id(ENTITY_ID_FORMAT, said, hass=hass)