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:
parent
f8367d3c01
commit
c80853496d
12 changed files with 78 additions and 46 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue