Skip to content

Commit

Permalink
Use HoneywellConfigEntry type
Browse files Browse the repository at this point in the history
  • Loading branch information
mkmer authored Dec 4, 2024
1 parent 5a63946 commit 83daaac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 2 additions & 0 deletions homeassistant/components/honeywell/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@

MIGRATE_OPTIONS_KEYS = {CONF_COOL_AWAY_TEMPERATURE, CONF_HEAT_AWAY_TEMPERATURE}

type HoneywellConfigEntry = ConfigEntry[HoneywellData]


@callback
def _async_migrate_data_to_options(
Expand Down
7 changes: 3 additions & 4 deletions homeassistant/components/honeywell/humidifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,11 @@
HumidifierEntity,
HumidifierEntityDescription,
)
from homeassistant.config_entries import ConfigEntry
from homeassistant.core import HomeAssistant
from homeassistant.helpers.device_registry import DeviceInfo
from homeassistant.helpers.entity_platform import AddEntitiesCallback

from . import HoneywellData
from . import HoneywellConfigEntry
from .const import DOMAIN

HUMIDIFIER_KEY = "humidifier"
Expand Down Expand Up @@ -73,11 +72,11 @@ class HoneywellHumidifierEntityDescription(HumidifierEntityDescription):

async def async_setup_entry(
hass: HomeAssistant,
config_entry: ConfigEntry,
config_entry: HoneywellConfigEntry,
async_add_entities: AddEntitiesCallback,
) -> None:
"""Set up Honeywell (de)humidifier dynamically."""
data: HoneywellData = config_entry.runtime_data
data = config_entry.runtime_data
entities: list = []
for device in data.devices.values():
if device.has_humidifier:
Expand Down

0 comments on commit 83daaac

Please sign in to comment.