Capitalize abbreviations in lektrico integration (#140311)

* Capitalize abbreviations in `lektrico` integration

* Update test_number.ambr

* Update test_binary_sensor.ambr

* Update test_binary_sensor.ambr

* Update test_number.ambr
This commit is contained in:
Norbert Rittel 2025-03-10 23:12:47 +01:00 committed by GitHub
parent 058c965b88
commit bf50ee9b5e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 12 additions and 12 deletions

View File

@ -24,7 +24,7 @@
"entity": { "entity": {
"binary_sensor": { "binary_sensor": {
"state_e_activated": { "state_e_activated": {
"name": "Ev error" "name": "EV error"
}, },
"overtemp": { "overtemp": {
"name": "Thermal throttling" "name": "Thermal throttling"
@ -45,10 +45,10 @@
"name": "Overvoltage" "name": "Overvoltage"
}, },
"rcd_error": { "rcd_error": {
"name": "Rcd error" "name": "RCD error"
}, },
"cp_diode_failure": { "cp_diode_failure": {
"name": "Ev diode short" "name": "EV diode short"
}, },
"contactor_failure": { "contactor_failure": {
"name": "Relay contacts welded" "name": "Relay contacts welded"
@ -64,7 +64,7 @@
}, },
"number": { "number": {
"led_max_brightness": { "led_max_brightness": {
"name": "Led brightness" "name": "LED brightness"
}, },
"dynamic_limit": { "dynamic_limit": {
"name": "Dynamic limit" "name": "Dynamic limit"

View File

@ -24,7 +24,7 @@
}), }),
'original_device_class': <BinarySensorDeviceClass.PROBLEM: 'problem'>, 'original_device_class': <BinarySensorDeviceClass.PROBLEM: 'problem'>,
'original_icon': None, 'original_icon': None,
'original_name': 'Ev diode short', 'original_name': 'EV diode short',
'platform': 'lektrico', 'platform': 'lektrico',
'previous_unique_id': None, 'previous_unique_id': None,
'supported_features': 0, 'supported_features': 0,
@ -37,7 +37,7 @@
StateSnapshot({ StateSnapshot({
'attributes': ReadOnlyDict({ 'attributes': ReadOnlyDict({
'device_class': 'problem', 'device_class': 'problem',
'friendly_name': '1p7k_500006 Ev diode short', 'friendly_name': '1p7k_500006 EV diode short',
}), }),
'context': <ANY>, 'context': <ANY>,
'entity_id': 'binary_sensor.1p7k_500006_ev_diode_short', 'entity_id': 'binary_sensor.1p7k_500006_ev_diode_short',
@ -72,7 +72,7 @@
}), }),
'original_device_class': <BinarySensorDeviceClass.PROBLEM: 'problem'>, 'original_device_class': <BinarySensorDeviceClass.PROBLEM: 'problem'>,
'original_icon': None, 'original_icon': None,
'original_name': 'Ev error', 'original_name': 'EV error',
'platform': 'lektrico', 'platform': 'lektrico',
'previous_unique_id': None, 'previous_unique_id': None,
'supported_features': 0, 'supported_features': 0,
@ -85,7 +85,7 @@
StateSnapshot({ StateSnapshot({
'attributes': ReadOnlyDict({ 'attributes': ReadOnlyDict({
'device_class': 'problem', 'device_class': 'problem',
'friendly_name': '1p7k_500006 Ev error', 'friendly_name': '1p7k_500006 EV error',
}), }),
'context': <ANY>, 'context': <ANY>,
'entity_id': 'binary_sensor.1p7k_500006_ev_error', 'entity_id': 'binary_sensor.1p7k_500006_ev_error',
@ -312,7 +312,7 @@
}), }),
'original_device_class': <BinarySensorDeviceClass.PROBLEM: 'problem'>, 'original_device_class': <BinarySensorDeviceClass.PROBLEM: 'problem'>,
'original_icon': None, 'original_icon': None,
'original_name': 'Rcd error', 'original_name': 'RCD error',
'platform': 'lektrico', 'platform': 'lektrico',
'previous_unique_id': None, 'previous_unique_id': None,
'supported_features': 0, 'supported_features': 0,
@ -325,7 +325,7 @@
StateSnapshot({ StateSnapshot({
'attributes': ReadOnlyDict({ 'attributes': ReadOnlyDict({
'device_class': 'problem', 'device_class': 'problem',
'friendly_name': '1p7k_500006 Rcd error', 'friendly_name': '1p7k_500006 RCD error',
}), }),
'context': <ANY>, 'context': <ANY>,
'entity_id': 'binary_sensor.1p7k_500006_rcd_error', 'entity_id': 'binary_sensor.1p7k_500006_rcd_error',

View File

@ -86,7 +86,7 @@
}), }),
'original_device_class': None, 'original_device_class': None,
'original_icon': None, 'original_icon': None,
'original_name': 'Led brightness', 'original_name': 'LED brightness',
'platform': 'lektrico', 'platform': 'lektrico',
'previous_unique_id': None, 'previous_unique_id': None,
'supported_features': 0, 'supported_features': 0,
@ -98,7 +98,7 @@
# name: test_all_entities[number.1p7k_500006_led_brightness-state] # name: test_all_entities[number.1p7k_500006_led_brightness-state]
StateSnapshot({ StateSnapshot({
'attributes': ReadOnlyDict({ 'attributes': ReadOnlyDict({
'friendly_name': '1p7k_500006 Led brightness', 'friendly_name': '1p7k_500006 LED brightness',
'max': 100, 'max': 100,
'min': 0, 'min': 0,
'mode': <NumberMode.AUTO: 'auto'>, 'mode': <NumberMode.AUTO: 'auto'>,