mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Force update ZHA electrical sensor (#14649)
* force state update because we have a real reading * hound * docstring
This commit is contained in:
parent
9a87e62e0e
commit
27f3285d17
@ -198,6 +198,11 @@ class ElectricalMeasurementSensor(Sensor):
|
|||||||
"""Return the unit of measurement of this entity."""
|
"""Return the unit of measurement of this entity."""
|
||||||
return 'W'
|
return 'W'
|
||||||
|
|
||||||
|
@property
|
||||||
|
def force_update(self) -> bool:
|
||||||
|
"""Force update this entity."""
|
||||||
|
return True
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def state(self):
|
def state(self):
|
||||||
"""Return the state of the entity."""
|
"""Return the state of the entity."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user