Fix callback and async (#31281)
* Fix callback and async * Fix a return * Fix test * Fix mqtt tests * Fix some more callbacks
This commit is contained in:
parent
ee602e40a6
commit
e9e44dbd97
90 changed files with 627 additions and 883 deletions
|
@ -94,9 +94,6 @@ class Scene(Entity):
|
|||
"""Activate scene. Try to get entities into requested state."""
|
||||
raise NotImplementedError()
|
||||
|
||||
def async_activate(self):
|
||||
"""Activate scene. Try to get entities into requested state.
|
||||
|
||||
This method must be run in the event loop and returns a coroutine.
|
||||
"""
|
||||
return self.hass.async_add_job(self.activate)
|
||||
async def async_activate(self):
|
||||
"""Activate scene. Try to get entities into requested state."""
|
||||
await self.hass.async_add_job(self.activate)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue