Skip to content

Commit

Permalink
Add check state button
Browse files Browse the repository at this point in the history
  • Loading branch information
DewGew authored Feb 5, 2024
1 parent 546a0c2 commit 37910d6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion templates/devices.html
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,15 @@ <h5 class="card-title">Description <span>| {{ v['name']['name'] }}</span></h5>
<input class="form-check-input" type="checkbox" id="willReportState" name="willReportState" {% if v['willReportState'] == True %}checked{% endif %}>
<label class="form-check-label" for="willReportState">Report State</label>
</div>
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" id="checkState" name="checkState" {% if v['customData']['check_state'] == True %}checked{% endif %}>
<label class="form-check-label" for="checkState">Check State</label></br>
<small class="form-text">Turns on/off already in state error message</small>
</div>
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" id="notification" name="notification" {% if v['notificationSupportedByAgent'] == True %}checked {% endif %} disabled>
<label class="form-check-label" for="notification">Notification Supported</label>{% if v['notificationSupportedByAgent'] == True %} <small>(User can turn on or off notifications in Google Home App)</small>{% endif %}
<label class="form-check-label" for="notification">Notification Supported</label></br>
{% if v['notificationSupportedByAgent'] == True %}<small class="form-text">User can turn on or off notifications in Google Home App</small>{% endif %}
</div>
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" id="secondaryUserVerificationCheck_{{ v['id'] }}" {% if ('acknowledge' in v['customData'] or v['customData']['protected'] == True) %}checked{% endif %}{% if 'Hidden' in v['customData']['domain'] %} disabled{% endif %}>
Expand Down

0 comments on commit 37910d6

Please sign in to comment.