mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Remove support for mqtt climate option CONF_POWER_STATE_TOPIC and template (#96771)
Remove support CONF_POWER_STATE_TOPIC and template
This commit is contained in:
parent
e99b6b2a03
commit
a4d4eb3871
@ -109,10 +109,8 @@ CONF_HUMIDITY_STATE_TOPIC = "target_humidity_state_topic"
|
|||||||
CONF_HUMIDITY_MAX = "max_humidity"
|
CONF_HUMIDITY_MAX = "max_humidity"
|
||||||
CONF_HUMIDITY_MIN = "min_humidity"
|
CONF_HUMIDITY_MIN = "min_humidity"
|
||||||
|
|
||||||
# CONF_POWER_STATE_TOPIC and CONF_POWER_STATE_TEMPLATE
|
# Support for CONF_POWER_STATE_TOPIC and CONF_POWER_STATE_TEMPLATE
|
||||||
# are deprecated, support for CONF_POWER_STATE_TOPIC and CONF_POWER_STATE_TEMPLATE
|
# was removed in HA Core 2023.8
|
||||||
# was already removed or never added support was deprecated with release 2023.2
|
|
||||||
# and will be removed with release 2023.8
|
|
||||||
CONF_POWER_STATE_TEMPLATE = "power_state_template"
|
CONF_POWER_STATE_TEMPLATE = "power_state_template"
|
||||||
CONF_POWER_STATE_TOPIC = "power_state_topic"
|
CONF_POWER_STATE_TOPIC = "power_state_topic"
|
||||||
|
|
||||||
@ -352,12 +350,10 @@ _PLATFORM_SCHEMA_BASE = MQTT_BASE_SCHEMA.extend(
|
|||||||
).extend(MQTT_ENTITY_COMMON_SCHEMA.schema)
|
).extend(MQTT_ENTITY_COMMON_SCHEMA.schema)
|
||||||
|
|
||||||
PLATFORM_SCHEMA_MODERN = vol.All(
|
PLATFORM_SCHEMA_MODERN = vol.All(
|
||||||
# CONF_POWER_STATE_TOPIC and CONF_POWER_STATE_TEMPLATE
|
# Support for CONF_POWER_STATE_TOPIC and CONF_POWER_STATE_TEMPLATE
|
||||||
# are deprecated, support for CONF_POWER_STATE_TOPIC and CONF_POWER_STATE_TEMPLATE
|
# was removed in HA Core 2023.8
|
||||||
# was already removed or never added support was deprecated with release 2023.2
|
cv.removed(CONF_POWER_STATE_TEMPLATE),
|
||||||
# and will be removed with release 2023.8
|
cv.removed(CONF_POWER_STATE_TOPIC),
|
||||||
cv.deprecated(CONF_POWER_STATE_TEMPLATE),
|
|
||||||
cv.deprecated(CONF_POWER_STATE_TOPIC),
|
|
||||||
_PLATFORM_SCHEMA_BASE,
|
_PLATFORM_SCHEMA_BASE,
|
||||||
valid_preset_mode_configuration,
|
valid_preset_mode_configuration,
|
||||||
valid_humidity_range_configuration,
|
valid_humidity_range_configuration,
|
||||||
@ -368,11 +364,10 @@ _DISCOVERY_SCHEMA_BASE = _PLATFORM_SCHEMA_BASE.extend({}, extra=vol.REMOVE_EXTRA
|
|||||||
|
|
||||||
DISCOVERY_SCHEMA = vol.All(
|
DISCOVERY_SCHEMA = vol.All(
|
||||||
_DISCOVERY_SCHEMA_BASE,
|
_DISCOVERY_SCHEMA_BASE,
|
||||||
# CONF_POWER_STATE_TOPIC and CONF_POWER_STATE_TEMPLATE are deprecated,
|
# Support for CONF_POWER_STATE_TOPIC and CONF_POWER_STATE_TEMPLATE
|
||||||
# support for CONF_POWER_STATE_TOPIC and CONF_POWER_STATE_TEMPLATE was already removed or never added
|
# was removed in HA Core 2023.8
|
||||||
# support was deprecated with release 2023.2 and will be removed with release 2023.8
|
cv.removed(CONF_POWER_STATE_TEMPLATE),
|
||||||
cv.deprecated(CONF_POWER_STATE_TEMPLATE),
|
cv.removed(CONF_POWER_STATE_TOPIC),
|
||||||
cv.deprecated(CONF_POWER_STATE_TOPIC),
|
|
||||||
valid_preset_mode_configuration,
|
valid_preset_mode_configuration,
|
||||||
valid_humidity_range_configuration,
|
valid_humidity_range_configuration,
|
||||||
valid_humidity_state_configuration,
|
valid_humidity_state_configuration,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user