Skip to content

Commit

Permalink
fix bug in disarming via mqtt
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsfaber committed May 8, 2022
1 parent d4a2c2a commit f283860
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion custom_components/alarmo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ async def async_handle_push_event(event):
await alarm_entity.async_handle_arm_request(arm_mode, skip_code=True)
elif action == const.EVENT_ACTION_DISARM:
_LOGGER.info("Received request for disarming")
await alarm_entity.async_alarm_disarm(None, True)
await alarm_entity.async_alarm_disarm(code=None, skip_code=True)

self._subscriptions.append(
self.hass.bus.async_listen(const.PUSH_EVENT, async_handle_push_event)
Expand Down
2 changes: 1 addition & 1 deletion custom_components/alarmo/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

from homeassistant.helpers import config_validation as cv

VERSION = "1.9.2"
VERSION = "1.9.3"
NAME = "Alarmo"
MANUFACTURER = "@nielsfaber"

Expand Down
2 changes: 1 addition & 1 deletion custom_components/alarmo/frontend/dist/alarm-panel.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion custom_components/alarmo/frontend/src/const.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const VERSION = '1.9.2';
export const VERSION = '1.9.3';

export const platform = 'alarmo';
export const editConfigService = 'edit_config';
Expand Down
2 changes: 1 addition & 1 deletion custom_components/alarmo/mqtt.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ async def async_message_received(self, msg):
_LOGGER.debug("Received command {}".format(command))

if command == command_payloads[const.COMMAND_DISARM]:
await entity.async_alarm_disarm(code, skip_code)
await entity.async_alarm_disarm(code=code, skip_code=skip_code)
elif command == command_payloads[const.COMMAND_ARM_AWAY]:
await entity.async_alarm_arm_away(code, skip_code)
elif command == command_payloads[const.COMMAND_ARM_NIGHT]:
Expand Down

0 comments on commit f283860

Please sign in to comment.