Fix shelly sensor names (#39854)

This commit is contained in:
Tomasz 2020-09-18 14:32:33 +02:00 committed by GitHub
parent d0a5feda44
commit 2d9019d4b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
),
}