add eco sensor entity

This commit is contained in:
Christopher Fenner 2023-12-02 20:55:07 +01:00
parent caa645e623
commit d64b38c548
No known key found for this signature in database
GPG key ID: F470D00838BFD56C

View file

@ -502,6 +502,14 @@ CIRCUIT_SENSORS: tuple[ViCareSensorEntityDescription, ...] = (
device_class=SensorDeviceClass.TEMPERATURE, device_class=SensorDeviceClass.TEMPERATURE,
state_class=SensorStateClass.MEASUREMENT, state_class=SensorStateClass.MEASUREMENT,
), ),
ViCareSensorEntityDescription(
key="eco_temperature",
translation_key="eco_temperature",
entity_category=EntityCategory.CONFIG,
device_class=SensorDeviceClass.TEMPERATURE,
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
value_getter=lambda api: api.getDesiredTemperatureForProgram("eco"),
),
) )
BURNER_SENSORS: tuple[ViCareSensorEntityDescription, ...] = ( BURNER_SENSORS: tuple[ViCareSensorEntityDescription, ...] = (