mirror of
https://github.com/home-assistant/core.git
synced 2026-09-04 04:22:09 +01:00
Fix device class for Matter thermostat temperature offset numbers (#180535)
Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5
parent
8af928dad1
commit
04ee53cc5d
@@ -314,7 +314,7 @@ DISCOVERY_SCHEMAS = [
|
||||
platform=Platform.NUMBER,
|
||||
entity_description=MatterNumberEntityDescription(
|
||||
key="EveTemperatureOffset",
|
||||
device_class=NumberDeviceClass.TEMPERATURE,
|
||||
device_class=NumberDeviceClass.TEMPERATURE_DELTA,
|
||||
entity_category=EntityCategory.CONFIG,
|
||||
translation_key="temperature_offset",
|
||||
# Matter 1.4 raises this to the SignedTemperature type's usable
|
||||
@@ -339,7 +339,7 @@ DISCOVERY_SCHEMAS = [
|
||||
platform=Platform.NUMBER,
|
||||
entity_description=MatterNumberEntityDescription(
|
||||
key="TemperatureOffset",
|
||||
device_class=NumberDeviceClass.TEMPERATURE,
|
||||
device_class=NumberDeviceClass.TEMPERATURE_DELTA,
|
||||
entity_category=EntityCategory.CONFIG,
|
||||
translation_key="temperature_offset",
|
||||
# Matter 1.4 raises this to the SignedTemperature type's usable
|
||||
|
||||
@@ -445,7 +445,7 @@
|
||||
'object_id_base': 'Temperature offset',
|
||||
'options': dict({
|
||||
}),
|
||||
'original_device_class': <NumberDeviceClass.TEMPERATURE: 'temperature'>,
|
||||
'original_device_class': <NumberDeviceClass.TEMPERATURE_DELTA: 'temperature_delta'>,
|
||||
'original_icon': None,
|
||||
'original_name': 'Temperature offset',
|
||||
'platform': 'matter',
|
||||
@@ -460,7 +460,7 @@
|
||||
# name: test_numbers[aqara_thermostat_w500][number.floor_heating_thermostat_temperature_offset-state]
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'temperature',
|
||||
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'temperature_delta',
|
||||
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Floor Heating Thermostat Temperature offset',
|
||||
<NumberEntityCapabilityAttribute.MAX: 'max'>: 12.7,
|
||||
<NumberEntityCapabilityAttribute.MIN: 'min'>: -12.7,
|
||||
@@ -743,7 +743,7 @@
|
||||
'object_id_base': 'Temperature offset',
|
||||
'options': dict({
|
||||
}),
|
||||
'original_device_class': <NumberDeviceClass.TEMPERATURE: 'temperature'>,
|
||||
'original_device_class': <NumberDeviceClass.TEMPERATURE_DELTA: 'temperature_delta'>,
|
||||
'original_icon': None,
|
||||
'original_name': 'Temperature offset',
|
||||
'platform': 'matter',
|
||||
@@ -758,7 +758,7 @@
|
||||
# name: test_numbers[eve_thermo_v4][number.eve_thermo_20ebp1701_temperature_offset-state]
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'temperature',
|
||||
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'temperature_delta',
|
||||
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Eve Thermo 20EBP1701 Temperature offset',
|
||||
<NumberEntityCapabilityAttribute.MAX: 'max'>: 12.7,
|
||||
<NumberEntityCapabilityAttribute.MIN: 'min'>: -12.7,
|
||||
@@ -804,7 +804,7 @@
|
||||
'object_id_base': 'Temperature offset',
|
||||
'options': dict({
|
||||
}),
|
||||
'original_device_class': <NumberDeviceClass.TEMPERATURE: 'temperature'>,
|
||||
'original_device_class': <NumberDeviceClass.TEMPERATURE_DELTA: 'temperature_delta'>,
|
||||
'original_icon': None,
|
||||
'original_name': 'Temperature offset',
|
||||
'platform': 'matter',
|
||||
@@ -819,7 +819,7 @@
|
||||
# name: test_numbers[eve_thermo_v5][number.eve_thermo_20ecd1701_temperature_offset-state]
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'temperature',
|
||||
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'temperature_delta',
|
||||
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Eve Thermo 20ECD1701 Temperature offset',
|
||||
<NumberEntityCapabilityAttribute.MAX: 'max'>: 12.7,
|
||||
<NumberEntityCapabilityAttribute.MIN: 'min'>: -12.7,
|
||||
@@ -4677,7 +4677,7 @@
|
||||
'object_id_base': 'Temperature offset',
|
||||
'options': dict({
|
||||
}),
|
||||
'original_device_class': <NumberDeviceClass.TEMPERATURE: 'temperature'>,
|
||||
'original_device_class': <NumberDeviceClass.TEMPERATURE_DELTA: 'temperature_delta'>,
|
||||
'original_icon': None,
|
||||
'original_name': 'Temperature offset',
|
||||
'platform': 'matter',
|
||||
@@ -4692,7 +4692,7 @@
|
||||
# name: test_numbers[mock_thermostat][number.mock_thermostat_temperature_offset-state]
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'temperature',
|
||||
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'temperature_delta',
|
||||
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Mock Thermostat Temperature offset',
|
||||
<NumberEntityCapabilityAttribute.MAX: 'max'>: 12.7,
|
||||
<NumberEntityCapabilityAttribute.MIN: 'min'>: -12.7,
|
||||
|
||||
Reference in New Issue
Block a user