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:
1 parent
ee602e40a6
commit
e9e44dbd97
90 files changed
+627
-883
No files matched your search
@@ -16,6 +16,7 @@ from homeassistant.const import (
|
||||
CONF_VERIFY_SSL,
|
||||
EVENT_HOMEASSISTANT_STOP,
|
||||
)
|
||||
from homeassistant.core import callback
|
||||
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
from homeassistant.helpers.entity import Entity
|
||||
@@ -210,6 +211,7 @@ class SMAsensor(Entity):
|
||||
"""SMA sensors are updated & don't poll."""
|
||||
return False
|
||||
|
||||
@callback
|
||||
def async_update_values(self):
|
||||
"""Update this sensor."""
|
||||
update = False
|
||||
|
||||
Reference in new issue
Block a user