From a41e3567ae396abac72f1eac9dd76ee0bc0d8e5d Mon Sep 17 00:00:00 2001 From: kyleboyer Date: Tue, 23 Jul 2024 23:52:18 -0500 Subject: [PATCH] Object.getPrototypeOf(this).constructor.name -> this.constructor.name --- src/accessory/base.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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{