mirror of
https://github.com/lasthead0/yandex2mqtt.git
synced 2025-08-08 01:00:31 +03:00
Debug
This commit is contained in:
@@ -12,6 +12,7 @@ function convertToYandexValue(val, actType) {
|
|||||||
return 0.0;
|
return 0.0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
case 'toggle':
|
||||||
case 'on_off': {
|
case 'on_off': {
|
||||||
if (val == undefined) return false;
|
if (val == undefined) return false;
|
||||||
if (['true', 'on', '1'].indexOf(String(val).toLowerCase()) != -1) return true;
|
if (['true', 'on', '1'].indexOf(String(val).toLowerCase()) != -1) return true;
|
||||||
|
Reference in New Issue
Block a user