Mqtt alarm added value_template and code_arm_required #19558
Conversation
|
It looks pretty OK, please add tests and fix the lint error (move the docstring). |
I fixed the lint error but I'm not a python developer and I'm not sure I can add tests :( |
balloob
left a comment
There was a problem hiding this comment.
Please add tests for new functionality
I'm sorry for late reply, can you please check if tests are ok? Tnx |
|
Hey @ToRvaLDz, the tests are great! Ok to merge when merge conflicts resolved. |
Added arm_code_required to avoid code enter when arming
# Conflicts: # homeassistant/components/alarm_control_panel/mqtt.py # tests/components/alarm_control_panel/test_mqtt.py
|
@balloob conflicts should be fixed |
Tests have been added and approved.
|
Sorry to jump in after this has been merged. But shouldn't this also be applied to async_alarm_arm_night? |
|
@JumpMaster your're right,tnx. @balloob how can I fix it, need to open another PR? |
|
Please open a new PR. |
Description:
Added value_template config option to parse json incoming message.Added code_arm_required config option to avoid code enter on arm.
Pull request in home-assistant.io with documentation (if applicable): home-assistant/home-assistant.io#8822
Checklist:
tox. Your PR cannot be merged unless tests passIf user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
REQUIREMENTSvariable (example).requirements_all.txtby runningscript/gen_requirements_all.py..coveragerc.If the code does not interact with devices: