Skip to content

Commit f6b2a9f

Browse files
Merge pull request #142 from LawnMeower/set_room_api_temp
FIx cast of the external room temperature
2 parents 6d44039 + f4cce04 commit f6b2a9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/MhiAcCtrl/automation.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ template<typename... Ts> class SetExternalRoomTemperatureAction : public Action<
4444
TEMPLATABLE_VALUE(float, temperature);
4545

4646
void play(Ts... x) {
47-
int temp = this->temperature_.value(x...);
47+
float temp = this->temperature_.value(x...);
4848
this->parent_->set_room_temperature(temp);
4949

5050
}

0 commit comments

Comments
 (0)