mirror of
https://github.com/home-assistant/core.git
synced 2025-07-13 08:17:08 +00:00
Align Matter eve thermo offset max range with eve app (#140579)
* align eve thermo offset max range with eve app * fix tests
This commit is contained in:
parent
19bc54c1de
commit
e49b105724
@ -169,8 +169,8 @@ DISCOVERY_SCHEMAS = [
|
|||||||
device_class=NumberDeviceClass.TEMPERATURE,
|
device_class=NumberDeviceClass.TEMPERATURE,
|
||||||
entity_category=EntityCategory.CONFIG,
|
entity_category=EntityCategory.CONFIG,
|
||||||
translation_key="temperature_offset",
|
translation_key="temperature_offset",
|
||||||
native_max_value=25,
|
native_max_value=50,
|
||||||
native_min_value=-25,
|
native_min_value=-50,
|
||||||
native_step=0.5,
|
native_step=0.5,
|
||||||
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
|
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
|
||||||
measurement_to_ha=lambda x: None if x is None else x / 10,
|
measurement_to_ha=lambda x: None if x is None else x / 10,
|
||||||
|
@ -401,8 +401,8 @@
|
|||||||
}),
|
}),
|
||||||
'area_id': None,
|
'area_id': None,
|
||||||
'capabilities': dict({
|
'capabilities': dict({
|
||||||
'max': 25,
|
'max': 50,
|
||||||
'min': -25,
|
'min': -50,
|
||||||
'mode': <NumberMode.BOX: 'box'>,
|
'mode': <NumberMode.BOX: 'box'>,
|
||||||
'step': 0.5,
|
'step': 0.5,
|
||||||
}),
|
}),
|
||||||
@ -439,8 +439,8 @@
|
|||||||
'attributes': ReadOnlyDict({
|
'attributes': ReadOnlyDict({
|
||||||
'device_class': 'temperature',
|
'device_class': 'temperature',
|
||||||
'friendly_name': 'Eve Thermo Temperature offset',
|
'friendly_name': 'Eve Thermo Temperature offset',
|
||||||
'max': 25,
|
'max': 50,
|
||||||
'min': -25,
|
'min': -50,
|
||||||
'mode': <NumberMode.BOX: 'box'>,
|
'mode': <NumberMode.BOX: 'box'>,
|
||||||
'step': 0.5,
|
'step': 0.5,
|
||||||
'unit_of_measurement': <UnitOfTemperature.CELSIUS: '°C'>,
|
'unit_of_measurement': <UnitOfTemperature.CELSIUS: '°C'>,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user