Fix sentence-casing of trigger subtypes in xiaomi_ble (#148463)

This commit is contained in:
Norbert Rittel 2025-07-09 09:43:22 +02:00 committed by GitHub
parent a02359b25d
commit 6de630ef3e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 11 deletions

View File

@ -59,13 +59,13 @@
"device_automation": {
"trigger_subtype": {
"press": "Press",
"double_press": "Double Press",
"long_press": "Long Press",
"motion_detected": "Motion Detected",
"rotate_left": "Rotate Left",
"rotate_right": "Rotate Right",
"rotate_left_pressed": "Rotate Left (Pressed)",
"rotate_right_pressed": "Rotate Right (Pressed)",
"double_press": "Double press",
"long_press": "Long press",
"motion_detected": "Motion detected",
"rotate_left": "Rotate left",
"rotate_right": "Rotate right",
"rotate_left_pressed": "Rotate left (pressed)",
"rotate_right_pressed": "Rotate right (pressed)",
"match_successful": "Match successful",
"match_failed": "Match failed",
"low_quality_too_light_fuzzy": "Low quality (too light, fuzzy)",
@ -224,7 +224,7 @@
"state_attributes": {
"event_type": {
"state": {
"motion_detected": "Motion Detected"
"motion_detected": "Motion detected"
}
}
}
@ -235,7 +235,7 @@
"name": "Impedance"
},
"weight_non_stabilized": {
"name": "Weight non stabilized"
"name": "Weight non-stabilized"
}
}
}

View File

@ -700,7 +700,7 @@ async def test_miscale_v1_uuid(hass: HomeAssistant) -> None:
assert mass_non_stabilized_sensor.state == "86.55"
assert (
mass_non_stabilized_sensor_attr[ATTR_FRIENDLY_NAME]
== "Mi Smart Scale (B5DC) Weight non stabilized"
== "Mi Smart Scale (B5DC) Weight non-stabilized"
)
assert mass_non_stabilized_sensor_attr[ATTR_UNIT_OF_MEASUREMENT] == "kg"
assert mass_non_stabilized_sensor_attr[ATTR_STATE_CLASS] == "measurement"
@ -742,7 +742,7 @@ async def test_miscale_v2_uuid(hass: HomeAssistant) -> None:
assert mass_non_stabilized_sensor.state == "85.15"
assert (
mass_non_stabilized_sensor_attr[ATTR_FRIENDLY_NAME]
== "Mi Body Composition Scale (B5DC) Weight non stabilized"
== "Mi Body Composition Scale (B5DC) Weight non-stabilized"
)
assert mass_non_stabilized_sensor_attr[ATTR_UNIT_OF_MEASUREMENT] == "kg"
assert mass_non_stabilized_sensor_attr[ATTR_STATE_CLASS] == "measurement"