Drop UNIT_ prefix for constants (#34164)

* Drop UNIT_ prefix for VOLT

* Drop UNIT_ prefix for DEGREE

* Drop UNIT_ prefix for CONDUCTIVITY

* Drop UNIT_ prefix for UV_INDEX

* Run isort
This commit is contained in:
springstan authored and GitHub committed 2020-04-21 19:45:53 +02:00
1 parent fbde040f59
commit ef9d9b17bd
42 files changed
+170 -196

No files matched your search

@@ -1,6 +1,6 @@
"""Definitions for DSMR Reader sensors added to MQTT."""
from homeassistant.const import ENERGY_KILO_WATT_HOUR, UNIT_VOLT, VOLUME_CUBIC_METERS
from homeassistant.const import ENERGY_KILO_WATT_HOUR, VOLT, VOLUME_CUBIC_METERS
def dsmr_transform(value):
@@ -86,17 +86,17 @@ DEFINITIONS = {
"dsmr/reading/phase_voltage_l1": {
"name": "Current voltage L1",
"icon": "mdi:flash",
"unit": UNIT_VOLT,
"unit": VOLT,
},
"dsmr/reading/phase_voltage_l2": {
"name": "Current voltage L2",
"icon": "mdi:flash",
"unit": UNIT_VOLT,
"unit": VOLT,
},
"dsmr/reading/phase_voltage_l3": {
"name": "Current voltage L3",
"icon": "mdi:flash",
"unit": UNIT_VOLT,
"unit": VOLT,
},
"dsmr/consumption/gas/delivered": {
"name": "Gas usage",