Skip to content

Commit

Permalink
fix alarm set issue
Browse files Browse the repository at this point in the history
  • Loading branch information
twrecked committed Mar 25, 2020
1 parent ff7ccd3 commit 07d7824
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/aarlo/alarm_control_panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,15 +404,15 @@ async def aarlo_siren_off_service_handler(base, _service):
async def async_alarm_mode_service(hass, call):
for entity_id in call.data['entity_id']:
mode = call.data['mode']
_LOGGER.info("{0} setting mode to {}".format(entity_id,mode))
_LOGGER.info("{0} setting mode to {1}".format(entity_id,mode))
get_entity_from_domain(hass,DOMAIN,entity_id).set_mode_in_ha(mode)


async def async_alarm_siren_on_service(hass, call):
for entity_id in call.data['entity_id']:
volume = call.data['volume']
duration = call.data['duration']
_LOGGER.info("{0} siren on {}/{}".format(entity_id,volume,duration))
_LOGGER.info("{0} siren on {1}/{2}".format(entity_id,volume,duration))
get_entity_from_domain(hass,DOMAIN,entity_id).siren_on(duration=duration, volume=volume)


Expand Down

0 comments on commit 07d7824

Please sign in to comment.