mirror of
https://github.com/esphome/esphome.git
synced 2025-10-27 13:13:50 +00:00
add MQTT preset support for Climate components (#4379)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Co-authored-by: Michiel, Jeroen <jeroen.michiel@teledyneflir.com>
This commit is contained in:
@@ -35,6 +35,8 @@ class MQTTClimateComponent : public mqtt::MQTTComponent {
|
||||
MQTT_COMPONENT_CUSTOM_TOPIC(fan_mode, command)
|
||||
MQTT_COMPONENT_CUSTOM_TOPIC(swing_mode, state)
|
||||
MQTT_COMPONENT_CUSTOM_TOPIC(swing_mode, command)
|
||||
MQTT_COMPONENT_CUSTOM_TOPIC(preset, state)
|
||||
MQTT_COMPONENT_CUSTOM_TOPIC(preset, command)
|
||||
|
||||
protected:
|
||||
const EntityBase *get_entity() const override;
|
||||
|
||||
Reference in New Issue
Block a user