add eco sensor entity
This commit is contained in:
parent
caa645e623
commit
d64b38c548
1 changed files with 8 additions and 0 deletions
|
@ -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, ...] = (
|
||||||
|
|
Loading…
Add table
Reference in a new issue