Handle missing keys in Honeywell (#98392)
This commit is contained in:
parent
5bf80a0f6d
commit
3e1d2a1000
3 changed files with 8 additions and 7 deletions
|
@ -20,6 +20,7 @@ from homeassistant.helpers.device_registry import DeviceInfo
|
|||
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||
from homeassistant.helpers.typing import StateType
|
||||
|
||||
from . import HoneywellData
|
||||
from .const import DOMAIN, HUMIDITY_STATUS_KEY, TEMPERATURE_STATUS_KEY
|
||||
|
||||
|
||||
|
@ -71,7 +72,7 @@ async def async_setup_entry(
|
|||
async_add_entities: AddEntitiesCallback,
|
||||
) -> None:
|
||||
"""Set up the Honeywell thermostat."""
|
||||
data = hass.data[DOMAIN][config_entry.entry_id]
|
||||
data: HoneywellData = hass.data[DOMAIN][config_entry.entry_id]
|
||||
sensors = []
|
||||
|
||||
for device in data.devices.values():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue