Manually cast door state to int
This commit is contained in:
parent
133c4e269d
commit
957d057675
|
@ -74,7 +74,7 @@ function handleSetState() {
|
|||
die();
|
||||
}
|
||||
|
||||
$door->createEvent((int)($event->time), (bool)($event->isDoorOpen));
|
||||
$door->createEvent((int)($event->time), $event->isDoorOpen ? 1 : 0);
|
||||
echo '{"status": "OK"}';
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue