codyc1515 / homebridge-panasonic-air-conditioner

Panasonic Air Conditioner / Heat Pump plugin for HomeBridge using the Panasonic Comfort Cloud API to expose Panasonic Air Conditioners to Apples HomeKit
MIT License
34 stars 13 forks source link

Version 6.0.0 Crashes when the AC is off #58

Closed rupertbg closed 3 years ago

rupertbg commented 3 years ago
TypeError: Cannot read property 'INACTIVE' of undefined
    at PanasonicAC.<anonymous> (/homebridge/node_modules/homebridge-panasonic-air-conditioner/index.js:290:99)
    at Request.self.callback (/homebridge/node_modules/homebridge-panasonic-air-conditioner/node_modules/request/request.js:185:22)
    at Request.emit (events.js:315:20)
    at Request.<anonymous> (/homebridge/node_modules/homebridge-panasonic-air-conditioner/node_modules/request/request.js:1154:10)
    at Request.emit (events.js:315:20)
    at IncomingMessage.<anonymous> (/homebridge/node_modules/homebridge-panasonic-air-conditioner/node_modules/request/request.js:1076:12)
    at Object.onceWrapper (events.js:421:28)
    at IncomingMessage.emit (events.js:327:22)
    at endReadableNT (internal/streams/readable.js:1327:12)
    at processTicksAndRejections (internal/process/task_queues.js:80:21)
arkadicolson commented 3 years ago

The same issue here...

Arkadi

codyc1515 commented 3 years ago

That’s strange. Admittedly I forgot to test this. Should be fixed now in 6.0.1