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
|
@ -122,6 +122,7 @@ class AbstractConfig(ABC):
|
|||
]
|
||||
await gather(*jobs)
|
||||
|
||||
@callback
|
||||
def async_enable_report_state(self):
|
||||
"""Enable proactive mode."""
|
||||
# Circular dep
|
||||
|
@ -131,6 +132,7 @@ class AbstractConfig(ABC):
|
|||
if self._unsub_report_state is None:
|
||||
self._unsub_report_state = async_enable_report_state(self.hass, self)
|
||||
|
||||
@callback
|
||||
def async_disable_report_state(self):
|
||||
"""Disable report state."""
|
||||
if self._unsub_report_state is not None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue