Improve Elk-M1 Control typing (#69924)

* Add types to __init__.py

* Fixup typing.

* Fix type error.

* Bump lib to fix login error.

Co-authored-by: Shay Levy <levyshay1@gmail.com>
This commit is contained in:
Glenn Waters 2022-04-15 17:14:45 -04:00 committed by GitHub
parent f8367d3c01
commit c80853496d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 78 additions and 46 deletions

View file

@ -37,7 +37,7 @@ async def async_setup_entry(
) -> None:
"""Create the Elk-M1 thermostat platform."""
elk_data = hass.data[DOMAIN][config_entry.entry_id]
entities: list[ElkThermostat] = []
entities: list[ElkEntity] = []
elk = elk_data["elk"]
create_elk_entities(
elk_data, elk.thermostats, "thermostat", ElkThermostat, entities