diff --git a/src/accessory/base.ts b/src/accessory/base.ts index 63f5de9..3963b46 100644 --- a/src/accessory/base.ts +++ b/src/accessory/base.ts @@ -68,7 +68,7 @@ export class BaseBlaQAccessory implements BaseBlaQAccessoryInterface { } protected getSelfClassName() { - return Object.getPrototypeOf(this).constructor.name; + return this.constructor.name; } protected getOrAddService(service: WithUUID | Service): Service{