Spelling fixes to user-facing strings of tplink (#143649)

* Fixes to user-facing strings of `tplink`

- add missing hyphen to "auto-off" and "auto-update"
- sentence-case one overlooked word

* Update test_sensor.ambr

* Update test_switch.ambr
This commit is contained in:
Norbert Rittel 2025-04-30 20:39:40 +02:00 committed by GitHub
parent a3a1d424c6
commit 3f7cae8583
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 10 additions and 10 deletions

View File

@ -209,7 +209,7 @@
"name": "Last water leak alert" "name": "Last water leak alert"
}, },
"auto_off_at": { "auto_off_at": {
"name": "Auto off at" "name": "Auto-off at"
}, },
"report_interval": { "report_interval": {
"name": "Report interval" "name": "Report interval"
@ -297,10 +297,10 @@
"name": "LED" "name": "LED"
}, },
"auto_update_enabled": { "auto_update_enabled": {
"name": "Auto update enabled" "name": "Auto-update enabled"
}, },
"auto_off_enabled": { "auto_off_enabled": {
"name": "Auto off enabled" "name": "Auto-off enabled"
}, },
"smooth_transitions": { "smooth_transitions": {
"name": "Smooth transitions" "name": "Smooth transitions"
@ -388,7 +388,7 @@
}, },
"segments": { "segments": {
"name": "Segments", "name": "Segments",
"description": "List of Segments (0 for all)." "description": "List of segments (0 for all)."
}, },
"brightness": { "brightness": {
"name": "Brightness", "name": "Brightness",

View File

@ -95,7 +95,7 @@
}), }),
'original_device_class': <SensorDeviceClass.TIMESTAMP: 'timestamp'>, 'original_device_class': <SensorDeviceClass.TIMESTAMP: 'timestamp'>,
'original_icon': None, 'original_icon': None,
'original_name': 'Auto off at', 'original_name': 'Auto-off at',
'platform': 'tplink', 'platform': 'tplink',
'previous_unique_id': None, 'previous_unique_id': None,
'supported_features': 0, 'supported_features': 0,
@ -108,7 +108,7 @@
StateSnapshot({ StateSnapshot({
'attributes': ReadOnlyDict({ 'attributes': ReadOnlyDict({
'device_class': 'timestamp', 'device_class': 'timestamp',
'friendly_name': 'my_device Auto off at', 'friendly_name': 'my_device Auto-off at',
}), }),
'context': <ANY>, 'context': <ANY>,
'entity_id': 'sensor.my_device_auto_off_at', 'entity_id': 'sensor.my_device_auto_off_at',

View File

@ -108,7 +108,7 @@
}), }),
'original_device_class': None, 'original_device_class': None,
'original_icon': None, 'original_icon': None,
'original_name': 'Auto off enabled', 'original_name': 'Auto-off enabled',
'platform': 'tplink', 'platform': 'tplink',
'previous_unique_id': None, 'previous_unique_id': None,
'supported_features': 0, 'supported_features': 0,
@ -120,7 +120,7 @@
# name: test_states[switch.my_device_auto_off_enabled-state] # name: test_states[switch.my_device_auto_off_enabled-state]
StateSnapshot({ StateSnapshot({
'attributes': ReadOnlyDict({ 'attributes': ReadOnlyDict({
'friendly_name': 'my_device Auto off enabled', 'friendly_name': 'my_device Auto-off enabled',
}), }),
'context': <ANY>, 'context': <ANY>,
'entity_id': 'switch.my_device_auto_off_enabled', 'entity_id': 'switch.my_device_auto_off_enabled',
@ -155,7 +155,7 @@
}), }),
'original_device_class': None, 'original_device_class': None,
'original_icon': None, 'original_icon': None,
'original_name': 'Auto update enabled', 'original_name': 'Auto-update enabled',
'platform': 'tplink', 'platform': 'tplink',
'previous_unique_id': None, 'previous_unique_id': None,
'supported_features': 0, 'supported_features': 0,
@ -167,7 +167,7 @@
# name: test_states[switch.my_device_auto_update_enabled-state] # name: test_states[switch.my_device_auto_update_enabled-state]
StateSnapshot({ StateSnapshot({
'attributes': ReadOnlyDict({ 'attributes': ReadOnlyDict({
'friendly_name': 'my_device Auto update enabled', 'friendly_name': 'my_device Auto-update enabled',
}), }),
'context': <ANY>, 'context': <ANY>,
'entity_id': 'switch.my_device_auto_update_enabled', 'entity_id': 'switch.my_device_auto_update_enabled',