Don't run unnecessary methods in executor pool (#14853)
* Don't run unnecessary methods in executor pool * Lint * Lint 2
This commit is contained in:
parent
50321a29b5
commit
90a51160c4
13 changed files with 23 additions and 32 deletions
|
@ -272,8 +272,7 @@ class AxisDeviceEvent(Entity):
|
|||
|
||||
def _update_callback(self):
|
||||
"""Update the sensor's state, if needed."""
|
||||
self.update()
|
||||
self.schedule_update_ha_state()
|
||||
self.schedule_update_ha_state(True)
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue