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:
1 parent
fbde040f59
commit
ef9d9b17bd
42 files changed
+170
-196
No files matched your search
@@ -7,7 +7,7 @@ from elkm1_lib.const import (
|
||||
)
|
||||
from elkm1_lib.util import pretty_const, username
|
||||
|
||||
from homeassistant.const import UNIT_VOLT
|
||||
from homeassistant.const import VOLT
|
||||
|
||||
from . import ElkAttachedEntity, create_elk_entities
|
||||
from .const import DOMAIN
|
||||
@@ -197,7 +197,7 @@ class ElkZone(ElkSensor):
|
||||
if self._element.definition == ZoneType.TEMPERATURE.value:
|
||||
return self._temperature_unit
|
||||
if self._element.definition == ZoneType.ANALOG_ZONE.value:
|
||||
return UNIT_VOLT
|
||||
return VOLT
|
||||
return None
|
||||
|
||||
def _element_changed(self, element, changeset):
|
||||
|
||||
Reference in new issue
Block a user