Fix async functions accidentally marked as callbacks (#41607)

pull/41611/head
J. Nick Koston 2020-10-10 09:54:36 -05:00 committed by GitHub
parent 73f52c829a
commit da2f9db62e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 1 additions and 7 deletions

View File

@ -4,7 +4,6 @@ import voluptuous as vol
from homeassistant import config_entries
from homeassistant.const import CONF_EMAIL, CONF_HOST, CONF_PORT
from homeassistant.core import callback
from homeassistant.helpers.aiohttp_client import async_get_clientsession
from . import DOMAIN # pylint: disable=unused-import
@ -43,7 +42,6 @@ class AtagConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
return self.async_create_entry(title=atag.id, data=user_input)
@callback
async def _show_form(self, errors=None):
"""Show the form to the user."""
return self.async_show_form(

View File

@ -11,7 +11,7 @@ from homeassistant.const import (
EVENT_HOMEASSISTANT_STARTED,
HTTP_OK,
)
from homeassistant.core import CoreState, callback, split_entity_id
from homeassistant.core import CoreState, split_entity_id
from homeassistant.helpers import entity_registry
from .const import (
@ -201,7 +201,6 @@ class CloudGoogleConfig(AbstractConfig):
self._sync_on_started = True
@callback
async def sync_google(_):
"""Sync entities to Google."""
await self.async_sync_entities_all()

View File

@ -1286,7 +1286,6 @@ class MqttDiscoveryUpdate(Entity):
else:
await self.async_remove()
@callback
async def discovery_callback(payload):
"""Handle discovery update."""
_LOGGER.info(

View File

@ -159,7 +159,6 @@ async def async_setup_entry(hass, entry, async_add_entities):
device_registry = await hass.helpers.device_registry.async_get_registry()
@callback
async def add_public_entities(update=True):
"""Retrieve Netatmo public weather entities."""
entities = {

View File

@ -140,7 +140,6 @@ class Sensor(ZhaEntity):
"""Restore previous state."""
self._state = last_state.state
@callback
async def async_state_attr_provider(self):
"""Initialize device state attributes."""
return {}