Skip to content

Commit

Permalink
Merge pull request #75 from arevaclier/master
Browse files Browse the repository at this point in the history
Fix MQTT_BASE_PLAFTORM_SCHEMA error
  • Loading branch information
hristo-atanasov authored Jun 4, 2022
2 parents e31a758 + 94fa8d6 commit 6e9c51b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion custom_components/tasmota_irhvac/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,10 @@
)

PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(MQTT_AVAILABILITY_SCHEMA.schema)
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(mqtt.MQTT_BASE_PLATFORM_SCHEMA.schema)
if hasattr(mqtt, 'MQTT_BASE_PLATFORM_SCHEMA'):
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(mqtt.MQTT_BASE_PLATFORM_SCHEMA.schema)
else:
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(mqtt.config.MQTT_BASE_SCHEMA.schema)

IRHVAC_SERVICE_SCHEMA = vol.Schema(
{vol.Required(ATTR_ENTITY_ID): cv.entity_ids})
Expand Down

0 comments on commit 6e9c51b

Please sign in to comment.