mirror of
https://github.com/Andre0512/hon.git
synced 2025-05-09 11:51:58 -04:00
Fix errors, bump pyhon
This commit is contained in:
parent
8aa8563b9b
commit
2802bcad25
10 changed files with 36 additions and 16 deletions
|
@ -23,8 +23,8 @@ from homeassistant.core import callback
|
|||
from pyhon import Hon
|
||||
from pyhon.appliance import HonAppliance
|
||||
|
||||
from custom_components.hon.const import HON_HVAC_MODE, HON_FAN, HON_HVAC_PROGRAM, DOMAIN
|
||||
from custom_components.hon.hon import HonEntity, HonCoordinator
|
||||
from .const import HON_HVAC_MODE, HON_FAN, HON_HVAC_PROGRAM, DOMAIN
|
||||
from .hon import HonEntity, HonCoordinator
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
@ -47,7 +47,7 @@ async def async_setup_entry(hass, entry: ConfigEntry, async_add_entities) -> Non
|
|||
|
||||
if descriptions := CLIMATES.get(device.appliance_type):
|
||||
for description in descriptions:
|
||||
if not device.settings.get(description.key):
|
||||
if description.key not in device.available_settings:
|
||||
continue
|
||||
appliances.extend(
|
||||
[HonClimateEntity(hass, coordinator, entry, device, description)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue