mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +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
|
name="Overheating", device_class=DEVICE_CLASS_PROBLEM
|
||||||
),
|
),
|
||||||
("device", "overpower"): BlockAttributeDescription(
|
("device", "overpower"): BlockAttributeDescription(
|
||||||
name="Over Power", device_class=DEVICE_CLASS_PROBLEM
|
name="Overpowering", device_class=DEVICE_CLASS_PROBLEM
|
||||||
),
|
),
|
||||||
("light", "overpower"): BlockAttributeDescription(
|
("light", "overpower"): BlockAttributeDescription(
|
||||||
name="Over Power", device_class=DEVICE_CLASS_PROBLEM
|
name="Overpowering", device_class=DEVICE_CLASS_PROBLEM
|
||||||
),
|
),
|
||||||
("relay", "overpower"): BlockAttributeDescription(
|
("relay", "overpower"): BlockAttributeDescription(
|
||||||
name="Over Power", device_class=DEVICE_CLASS_PROBLEM
|
name="Overpowering", device_class=DEVICE_CLASS_PROBLEM
|
||||||
),
|
),
|
||||||
("sensor", "dwIsOpened"): BlockAttributeDescription(
|
("sensor", "dwIsOpened"): BlockAttributeDescription(
|
||||||
name="Door", device_class=DEVICE_CLASS_OPENING
|
name="Door", device_class=DEVICE_CLASS_OPENING
|
||||||
),
|
),
|
||||||
("sensor", "flood"): BlockAttributeDescription(
|
("sensor", "flood"): BlockAttributeDescription(
|
||||||
name="flood", device_class=DEVICE_CLASS_MOISTURE
|
name="Flood", device_class=DEVICE_CLASS_MOISTURE
|
||||||
),
|
),
|
||||||
("sensor", "gas"): BlockAttributeDescription(
|
("sensor", "gas"): BlockAttributeDescription(
|
||||||
name="gas",
|
name="Gas",
|
||||||
device_class=DEVICE_CLASS_GAS,
|
device_class=DEVICE_CLASS_GAS,
|
||||||
value=lambda value: value in ["mild", "heavy"],
|
value=lambda value: value in ["mild", "heavy"],
|
||||||
device_state_attributes=lambda block: {"detected": block.gas},
|
device_state_attributes=lambda block: {"detected": block.gas},
|
||||||
),
|
),
|
||||||
("sensor", "smoke"): BlockAttributeDescription(
|
("sensor", "smoke"): BlockAttributeDescription(
|
||||||
name="smoke", device_class=DEVICE_CLASS_SMOKE
|
name="Smoke", device_class=DEVICE_CLASS_SMOKE
|
||||||
),
|
),
|
||||||
("sensor", "vibration"): BlockAttributeDescription(
|
("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