mirror of
https://github.com/esphome/esphome.git
synced 2026-07-10 08:55:36 +00:00
merge
This commit is contained in:
@@ -908,12 +908,7 @@ std::string WebServer::cover_json(cover::Cover *obj, JsonDetail start_config) {
|
||||
|
||||
set_json_icon_state_value(root, obj, "cover", obj->is_fully_closed() ? "CLOSED" : "OPEN", obj->position,
|
||||
start_config);
|
||||
<<<<<<< Updated upstream
|
||||
root["current_operation"] = cover::cover_operation_to_str(obj->current_operation);
|
||||
=======
|
||||
char buf[PSTR_LOCAL_SIZE];
|
||||
root[ESPHOME_F("current_operation")] = PSTR_LOCAL(cover::cover_operation_to_str(obj->current_operation));
|
||||
>>>>>>> Stashed changes
|
||||
root[ESPHOME_F("current_operation")] = cover::cover_operation_to_str(obj->current_operation);
|
||||
|
||||
if (obj->get_traits().get_supports_position())
|
||||
root[ESPHOME_F("position")] = obj->position;
|
||||
@@ -1569,12 +1564,7 @@ std::string WebServer::valve_json(valve::Valve *obj, JsonDetail start_config) {
|
||||
|
||||
set_json_icon_state_value(root, obj, "valve", obj->is_fully_closed() ? "CLOSED" : "OPEN", obj->position,
|
||||
start_config);
|
||||
<<<<<<< Updated upstream
|
||||
root["current_operation"] = valve::valve_operation_to_str(obj->current_operation);
|
||||
=======
|
||||
char buf[PSTR_LOCAL_SIZE];
|
||||
root[ESPHOME_F("current_operation")] = PSTR_LOCAL(valve::valve_operation_to_str(obj->current_operation));
|
||||
>>>>>>> Stashed changes
|
||||
root[ESPHOME_F("current_operation")] = valve::valve_operation_to_str(obj->current_operation);
|
||||
|
||||
if (obj->get_traits().get_supports_position())
|
||||
root[ESPHOME_F("position")] = obj->position;
|
||||
|
||||
Reference in New Issue
Block a user