Update manual ACP tests to async (#18289)

This commit is contained in:
Adam Mills
2018-11-07 03:56:24 -05:00
committed by Paulus Schoutsen
parent 0d7cb54872
commit ce069be16e
3 changed files with 1395 additions and 1289 deletions

View File

@@ -13,9 +13,10 @@ from homeassistant.const import (
CONF_PENDING_TIME, CONF_TRIGGER_TIME)
def setup_platform(hass, config, add_entities, discovery_info=None):
async def async_setup_platform(hass, config, async_add_entities,
discovery_info=None):
"""Set up the Demo alarm control panel platform."""
add_entities([
async_add_entities([
manual.ManualAlarm(hass, 'Alarm', '1234', None, False, {
STATE_ALARM_ARMED_AWAY: {
CONF_DELAY_TIME: datetime.timedelta(seconds=0),