small fix
This commit is contained in:
1
main.py
1
main.py
@@ -192,6 +192,7 @@ loadconfig()
|
||||
|
||||
def hpiapp(function='status'):
|
||||
if function == 'status':
|
||||
if hpiatstart == '1':
|
||||
if not sio_remote.connected:
|
||||
try:
|
||||
logging.info("Trying to reconnect...")
|
||||
|
||||
@@ -1082,9 +1082,9 @@ $(document).ready(function() {
|
||||
$("#hpicontrol")[0].classList.remove('disabled')
|
||||
$("#hpicontrol")[0].classList.add('btn-outline-success')
|
||||
$("#hpicontrol").text('Connect')
|
||||
if (!$('#hpikey').val()) {
|
||||
$("#hpicontrol")[0].classList.add('disabled')
|
||||
}
|
||||
//if (!$('#hpikey').val()) {
|
||||
// $("#hpicontrol")[0].classList.add('disabled')
|
||||
//}
|
||||
break;
|
||||
case false:
|
||||
removeClassesByPrefix('#hpistatus', 'text-')
|
||||
|
||||
Reference in New Issue
Block a user