[api] Align water_heater_command with standard entity command pattern (#13655)

This commit is contained in:
J. Nick Koston
2026-02-02 22:00:46 +01:00
committed by GitHub
parent aa8ccfc32b
commit 6892805094
5 changed files with 14 additions and 2 deletions
+1 -1
View File
@@ -1385,7 +1385,7 @@ uint16_t APIConnection::try_send_water_heater_info(EntityBase *entity, APIConnec
is_single);
}
void APIConnection::on_water_heater_command_request(const WaterHeaterCommandRequest &msg) {
void APIConnection::water_heater_command(const WaterHeaterCommandRequest &msg) {
ENTITY_COMMAND_MAKE_CALL(water_heater::WaterHeater, water_heater, water_heater)
if (msg.has_fields & enums::WATER_HEATER_COMMAND_HAS_MODE)
call.set_mode(static_cast<water_heater::WaterHeaterMode>(msg.mode));