Async syntax 7, switch & tts & vacuum (#17021)
This commit is contained in:
parent
9aaf11de8c
commit
121dba659c
20 changed files with 163 additions and 253 deletions
|
@ -4,7 +4,6 @@ Support for toggling Amcrest IP camera settings.
|
|||
For more details about this platform, please refer to the documentation at
|
||||
https://home-assistant.io/components/switch.amcrest/
|
||||
"""
|
||||
import asyncio
|
||||
import logging
|
||||
|
||||
from homeassistant.components.amcrest import DATA_AMCREST, SWITCHES
|
||||
|
@ -17,9 +16,8 @@ _LOGGER = logging.getLogger(__name__)
|
|||
DEPENDENCIES = ['amcrest']
|
||||
|
||||
|
||||
@asyncio.coroutine
|
||||
def async_setup_platform(hass, config, async_add_entities,
|
||||
discovery_info=None):
|
||||
async def async_setup_platform(hass, config, async_add_entities,
|
||||
discovery_info=None):
|
||||
"""Set up the IP Amcrest camera switch platform."""
|
||||
if discovery_info is None:
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue