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