mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Fix shelly sensor names (#39854)
This commit is contained in:
parent
d0a5feda44
commit
2d9019d4b2
@ -20,31 +20,31 @@ SENSORS = {
|
||||
name="Overheating", device_class=DEVICE_CLASS_PROBLEM
|
||||
),
|
||||
("device", "overpower"): BlockAttributeDescription(
|
||||
name="Over Power", device_class=DEVICE_CLASS_PROBLEM
|
||||
name="Overpowering", device_class=DEVICE_CLASS_PROBLEM
|
||||
),
|
||||
("light", "overpower"): BlockAttributeDescription(
|
||||
name="Over Power", device_class=DEVICE_CLASS_PROBLEM
|
||||
name="Overpowering", device_class=DEVICE_CLASS_PROBLEM
|
||||
),
|
||||
("relay", "overpower"): BlockAttributeDescription(
|
||||
name="Over Power", device_class=DEVICE_CLASS_PROBLEM
|
||||
name="Overpowering", device_class=DEVICE_CLASS_PROBLEM
|
||||
),
|
||||
("sensor", "dwIsOpened"): BlockAttributeDescription(
|
||||
name="Door", device_class=DEVICE_CLASS_OPENING
|
||||
),
|
||||
("sensor", "flood"): BlockAttributeDescription(
|
||||
name="flood", device_class=DEVICE_CLASS_MOISTURE
|
||||
name="Flood", device_class=DEVICE_CLASS_MOISTURE
|
||||
),
|
||||
("sensor", "gas"): BlockAttributeDescription(
|
||||
name="gas",
|
||||
name="Gas",
|
||||
device_class=DEVICE_CLASS_GAS,
|
||||
value=lambda value: value in ["mild", "heavy"],
|
||||
device_state_attributes=lambda block: {"detected": block.gas},
|
||||
),
|
||||
("sensor", "smoke"): BlockAttributeDescription(
|
||||
name="smoke", device_class=DEVICE_CLASS_SMOKE
|
||||
name="Smoke", device_class=DEVICE_CLASS_SMOKE
|
||||
),
|
||||
("sensor", "vibration"): BlockAttributeDescription(
|
||||
name="vibration", device_class=DEVICE_CLASS_VIBRATION
|
||||
name="Vibration", device_class=DEVICE_CLASS_VIBRATION
|
||||
),
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user