gw-wiscon / homebridge-philipstv

Homebridge module for Philips TV (with JointSpace enabled)
15 stars 49 forks source link

Update index.js #5

Open uronito opened 8 years ago

uronito commented 8 years ago

With this modification if tv is unplugged or httrequest fails then homebridge plugin return state switch to off

Now seem run perfect!!!!!!

Thanks!!!!!!

gw-wiscon commented 8 years ago

Hi Uronito, I checken, and I believe a better solution is to return an error. In that way, homebridge will think that the power on request failed. Which is actually true.

Can you verify if it works?