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_USERNAME,
|
||||
CONF_VERIFY_SSL,
|
||||
)
|
||||
from homeassistant.core import callback
|
||||
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
|
||||
@@ -55,6 +56,7 @@ CONFIG_SCHEMA = vol.Schema(
|
||||
async def async_setup(hass, config):
|
||||
"""Set up the REST command component."""
|
||||
|
||||
@callback
|
||||
def async_register_rest_command(name, command_config):
|
||||
"""Create service for rest command."""
|
||||
websession = async_get_clientsession(hass, command_config.get(CONF_VERIFY_SSL))
|
||||
|
||||
Reference in new issue
Block a user