Add Shelly UNI ADC sensor (#43490)

pull/43353/head^2
Simone Chemelli 2020-11-25 15:37:07 +01:00 committed by GitHub
parent ebaf143cf6
commit b7f36106df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -158,6 +158,12 @@ SENSORS = {
"Operational hours": round(block.totalWorkTime / 3600, 1)
},
),
("adc", "adc"): BlockAttributeDescription(
name="ADC",
unit=VOLT,
value=lambda value: round(value, 1),
device_class=sensor.DEVICE_CLASS_VOLTAGE,
),
}
REST_SENSORS = {