Remove MQTT platform schema warnings (#93785)

This commit is contained in:
Jan Bouwhuis 2023-05-31 09:02:48 +02:00 committed by GitHub
parent 4119d3198a
commit 661aedde90
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
23 changed files with 17 additions and 293 deletions

View file

@ -58,12 +58,7 @@ from .const import (
PAYLOAD_NONE,
)
from .debug_info import log_messages
from .mixins import (
MQTT_ENTITY_COMMON_SCHEMA,
MqttEntity,
async_setup_entry_helper,
warn_for_legacy_schema,
)
from .mixins import MQTT_ENTITY_COMMON_SCHEMA, MqttEntity, async_setup_entry_helper
from .models import (
MqttCommandTemplate,
MqttValueTemplate,
@ -389,13 +384,6 @@ PLATFORM_SCHEMA_MODERN = vol.All(
valid_humidity_state_configuration,
)
# Configuring MQTT Climate under the climate platform key was deprecated in
# HA Core 2022.6
# Setup for the legacy YAML format was removed in HA Core 2022.12
PLATFORM_SCHEMA = vol.All(
warn_for_legacy_schema(climate.DOMAIN),
)
_DISCOVERY_SCHEMA_BASE = _PLATFORM_SCHEMA_BASE.extend({}, extra=vol.REMOVE_EXTRA)
DISCOVERY_SCHEMA = vol.All(