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
|
@ -16,6 +16,7 @@ from homeassistant.components.cover import (
|
|||
CoverDevice,
|
||||
)
|
||||
from homeassistant.const import STATE_CLOSED, STATE_CLOSING, STATE_OPEN, STATE_OPENING
|
||||
from homeassistant.core import callback
|
||||
|
||||
from . import KNOWN_DEVICES, HomeKitEntity
|
||||
|
||||
|
@ -41,6 +42,7 @@ async def async_setup_entry(hass, config_entry, async_add_entities):
|
|||
hkid = config_entry.data["AccessoryPairingID"]
|
||||
conn = hass.data[KNOWN_DEVICES][hkid]
|
||||
|
||||
@callback
|
||||
def async_add_service(aid, service):
|
||||
info = {"aid": aid, "iid": service["iid"]}
|
||||
if service["stype"] == "garage-door-opener":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue