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

Warning to developer with Homebridge 1.0.0

Open ceraz68 opened this issue 4 years ago • 0 comments

I get a warning with the latest homebridge. I had a similar error report for one of my own plugins (trailing dash in the "name" field of package.json) but the nut package.json looks correct.

[4/27/2020, 2:37:24 PM] Loaded plugin: homebridge-nut [4/27/2020, 2:37:24 PM] Plugin 'homebridge-nut' tried to register with an incorrect plugin identifier: 'homebridge-nut-accessory'. Please report this to the developer! [4/27/2020, 2:37:24 PM] Registering accessory 'homebridge-nut.NutAccessory' [4/27/2020, 2:37:24 PM] Registering platform 'homebridge-nut.Nut'

I've never built a platform plugin so my knowledge is close to 'null'. In index.js I see you export both the accessory and the platform. Shouldn't the export/registration of the platform automatically register the accessory?

Cheers

ceraz68 avatar Apr 27 '20 12:04 ceraz68