mirror of
https://github.com/esphome/esphome.git
synced 2025-02-07 13:40:59 +00:00
Fix uninitialized climate target temperature (#5795)
This commit is contained in:
parent
ad79e4fe24
commit
cc7d167e8b
@ -160,6 +160,8 @@ struct ClimateDeviceRestoreState {
|
|||||||
*/
|
*/
|
||||||
class Climate : public EntityBase {
|
class Climate : public EntityBase {
|
||||||
public:
|
public:
|
||||||
|
Climate() {}
|
||||||
|
|
||||||
/// The active mode of the climate device.
|
/// The active mode of the climate device.
|
||||||
ClimateMode mode{CLIMATE_MODE_OFF};
|
ClimateMode mode{CLIMATE_MODE_OFF};
|
||||||
/// The active state of the climate device.
|
/// The active state of the climate device.
|
||||||
@ -172,9 +174,9 @@ class Climate : public EntityBase {
|
|||||||
float target_temperature;
|
float target_temperature;
|
||||||
struct {
|
struct {
|
||||||
/// The minimum target temperature of the climate device, for climate devices with split target temperature.
|
/// The minimum target temperature of the climate device, for climate devices with split target temperature.
|
||||||
float target_temperature_low;
|
float target_temperature_low{NAN};
|
||||||
/// The maximum target temperature of the climate device, for climate devices with split target temperature.
|
/// The maximum target temperature of the climate device, for climate devices with split target temperature.
|
||||||
float target_temperature_high;
|
float target_temperature_high{NAN};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user