Skip to content

Commit

Permalink
Fix for #161 Stopped working after update Home Assistant to 2024.11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hristo-atanasov authored Nov 7, 2024
1 parent 08d18dc commit 4439373
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions custom_components/tasmota_irhvac/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
from homeassistant.components import mqtt

try:
from homeassistant.components.mqtt.schemas import MQTT_AVAILABILITY_SCHEMA
from homeassistant.components.mqtt.schemas import MQTT_ENTITY_COMMON_SCHEMA
except ImportError:
from homeassistant.components.mqtt.mixins import MQTT_AVAILABILITY_SCHEMA
from homeassistant.components.mqtt.mixins import MQTT_ENTITY_COMMON_SCHEMA

from homeassistant.components.climate import PLATFORM_SCHEMA as CLIMATE_PLATFORM_SCHEMA

Expand Down Expand Up @@ -265,7 +265,7 @@
}
)

PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(MQTT_AVAILABILITY_SCHEMA.schema)
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(MQTT_ENTITY_COMMON_SCHEMA.schema)
if hasattr(mqtt, "MQTT_BASE_PLATFORM_SCHEMA"):
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(mqtt.MQTT_BASE_PLATFORM_SCHEMA.schema)
else:
Expand Down

0 comments on commit 4439373

Please sign in to comment.