mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +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 'W'
|
||||
|
||||
@property
|
||||
def force_update(self) -> bool:
|
||||
"""Force update this entity."""
|
||||
return True
|
||||
|
||||
@property
|
||||
def state(self):
|
||||
"""Return the state of the entity."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user