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:
David Badura 2025-03-25 14:22:32 +01:00 committed by GitHub
parent 19bc54c1de
commit e49b105724
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 6 deletions

View File

@ -169,8 +169,8 @@ DISCOVERY_SCHEMAS = [
device_class=NumberDeviceClass.TEMPERATURE,
entity_category=EntityCategory.CONFIG,
translation_key="temperature_offset",
native_max_value=25,
native_min_value=-25,
native_max_value=50,
native_min_value=-50,
native_step=0.5,
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
measurement_to_ha=lambda x: None if x is None else x / 10,

View File

@ -401,8 +401,8 @@
}),
'area_id': None,
'capabilities': dict({
'max': 25,
'min': -25,
'max': 50,
'min': -50,
'mode': <NumberMode.BOX: 'box'>,
'step': 0.5,
}),
@ -439,8 +439,8 @@
'attributes': ReadOnlyDict({
'device_class': 'temperature',
'friendly_name': 'Eve Thermo Temperature offset',
'max': 25,
'min': -25,
'max': 50,
'min': -50,
'mode': <NumberMode.BOX: 'box'>,
'step': 0.5,
'unit_of_measurement': <UnitOfTemperature.CELSIUS: '°C'>,