Skip to content

Commit

Permalink
Add DoorLockInverted
Browse files Browse the repository at this point in the history
  • Loading branch information
DewGew authored Jan 29, 2024
1 parent 9dde1e9 commit 974a331
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions templates/dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ <h5 class="card-title">Device log <span>| {{ v['name']['name'] }}</span></h5>
</div><!-- End Vertically centered Modal-->
</div>
</div>
{% elif v['customData']['domain'] == 'DoorLock' %}
{% elif v['customData']['domain'] in ('DoorLock', 'DoorLockInverted') %}
<div class="icon">
<div class="click" onclick="toogleSwitch({{ v['customData']['idx'] }}, '{{ v['customData']['protected'] }}')">
<i class="material-symbols-outlined" id="icon_{{ v['customData']['domain'] }}_{{ v['customData']['idx'] }}">lock</i>
Expand Down Expand Up @@ -673,7 +673,7 @@ <h5 id="title_other">Other devices <i class="bi bi-chevron-compact-down"></i></h
{% for k, v in devices.items() %}
{% if (v['customData']['domain'] not in (
'Group','Scene','Thermostat', 'Setpoint','Temp', 'TempHumidity', 'TempHumidityBaro','SmokeDetector', 'Security',
'VenetianBlindsEU', 'OnOff', 'Dimmer', 'VenetianBlindsUS', 'Doorbell', 'DoorLock', 'Selector', 'DoorContact', 'BlindsPercentage',
'VenetianBlindsEU', 'OnOff', 'Dimmer', 'VenetianBlindsUS', 'Doorbell', 'DoorLock', 'DoorLockInverted', 'Selector', 'DoorContact', 'BlindsPercentage',
'MotionSensor', 'PushOnButton', 'PushOffButton', 'ColorSwitch', 'Contact') and 'Hidden' not in v['customData']['domain'] ) %}
<div class="icon">
<i class="material-symbols-outlined" id="icon_{{ v['customData']['idx'] }}">unknown_2</i>
Expand Down Expand Up @@ -760,7 +760,7 @@ <h5 id="title_hidden" style="cursor: pointer;">Hidden devices <i class="bi bi-ch
updateSwitches_block.push("{{ v['customData']['idx'] }}")
$('#title_security').show()
{% elif (v['customData']['domain'] not in (
'SmokeDetector', 'Security', 'VenetianBlindsEU', 'OnOff', 'VenetianBlindsUS', 'Doorbell', 'DoorLock', 'DoorContact', 'BlindsPercentage',
'SmokeDetector', 'Security', 'VenetianBlindsEU', 'OnOff', 'VenetianBlindsUS', 'Doorbell', 'DoorLock', 'DoorLockInverted', 'DoorContact', 'BlindsPercentage',
'MotionSensor', 'PushOnButton', 'PushOffButton', 'Contact') and 'Hidden' not in v['customData']['domain']) %}
updateOthers_block.push("{{ v['customData']['idx'] }}")
$('#title_other').show()
Expand Down

0 comments on commit 974a331

Please sign in to comment.