michbeck100 / pimatic-hap

Pimatic homekit bridge
GNU General Public License v2.0
30 stars 10 forks source link

#57 Handling undefined switch state #58

Closed Gernot closed 7 years ago

Gernot commented 7 years ago

I seriously have no idea about Node & Coffeescript, so this is my first attempt at fixing #57 . No idea if this is the best way to fix it, but it seems to "work for me"™.

michbeck100 commented 7 years ago

Sorry, but getState must always return a Promise. So thanks for you changes but i won't merge them, as the problem must be fixed in the plugin that returns "undefined" when calling getState (probably pimatic-wemo?)

Gernot commented 7 years ago

Sure, I see, thanks. Will continue with pimatic-wemo.