Rename DOMAIN in climate

pull/41995/head
Brett Adams 2020-10-17 10:17:09 +00:00
parent 0d9708ca8a
commit 271ac7b8a5
1 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ from .const import (
ADVANTAGE_AIR_STATE_OFF,
ADVANTAGE_AIR_STATE_ON,
ADVANTAGE_AIR_STATE_OPEN,
DOMAIN,
DOMAIN as ADVANTAGE_AIR_DOMAIN,
)
ADVANTAGE_AIR_HVAC_MODES = {
@ -55,7 +55,7 @@ ZONE_HVAC_MODES = [HVAC_MODE_OFF, HVAC_MODE_FAN_ONLY]
async def async_setup_entry(hass, config_entry, async_add_entities):
"""Set up AdvantageAir climate platform."""
instance = hass.data[DOMAIN][config_entry.entry_id]
instance = hass.data[ADVANTAGE_AIR_DOMAIN][config_entry.entry_id]
entities = []
for ac_key, ac_device in instance["coordinator"].data["aircons"].items():