Changed SensorDeviceClass to POWER
This commit is contained in:
parent
f2428dd2f9
commit
2210a3ac32
@ -49,13 +49,11 @@ class UTESensor(SensorEntity):
|
|||||||
_attr_name = "UTE Current power usage"
|
_attr_name = "UTE Current power usage"
|
||||||
_attr_icon = "lightning-bolt"
|
_attr_icon = "lightning-bolt"
|
||||||
_attr_native_unit_of_measurement = UnitOfPower.WATT
|
_attr_native_unit_of_measurement = UnitOfPower.WATT
|
||||||
_attr_device_class = SensorDeviceClass.ENERGY
|
_attr_device_class = SensorDeviceClass.POWER
|
||||||
|
|
||||||
def __init__(self, client: UTEClient):
|
def __init__(self, client: UTEClient):
|
||||||
super().__init__()
|
super().__init__()
|
||||||
self.client = client
|
self.client = client
|
||||||
self._state = None
|
|
||||||
self._available = True
|
|
||||||
self._name = "Current energy usage"
|
self._name = "Current energy usage"
|
||||||
|
|
||||||
def update(self):
|
def update(self):
|
||||||
|
Reference in New Issue
Block a user