homebridge-script icon indicating copy to clipboard operation
homebridge-script copied to clipboard

State not returning correctly.

Open warrendt opened this issue 6 years ago • 0 comments

Hi,

I am running a simple on/off execute that uses the state flag file. But for some reason I am getting the following output

[2018-10-19 13:40:55] [Azure Server] State of Azure Server is: [object Promise] [2018-10-19 13:41:25] [Azure Server] State of Azure Server is: [object Promise] [2018-10-19 13:41:54] [Azure Server] State of Azure Server is: [object Promise]

What is [object Promise] representing. At first I thought it was a permissions thing on the file, but I have checked that, does it matter what is in the file.

Wether I use the state file or not, its not determining the state of my script correctly.

Any ideas?

warrendt avatar Oct 19 '18 13:10 warrendt