jamesrodda / homebridge-mihomegateway

A homebridge plugin for connecting the MiHome gateway to HomeKit
Apache License 2.0
12 stars 2 forks source link

Catch Errors #11

Closed SmolSoftBoi closed 4 years ago

SmolSoftBoi commented 4 years ago

Catch error when device is null, and device_type cannot be accessed.

jamesrodda commented 4 years ago

Thanks @EpicKris...

I've got an issue open with homebridge at the moment re this and have a fix lined up. Was hoping they'd be able to point me towards why the device is getting lost but no answer as of yet.

Your change, when applied alongside mine, would actually handle exceptions in creating the particular accessory which is useful too so will merge based on that.