Skip to content
This repository has been archived by the owner on Nov 7, 2024. It is now read-only.

Commit

Permalink
fix(cover): add identify aspect (#233)
Browse files Browse the repository at this point in the history
  • Loading branch information
t0bst4r authored Jul 29, 2024
1 parent 71ecfe5 commit e82595e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { DeviceTypes } from 'matterbridge';

import { WindowCoveringAspect } from '@/aspects/index.js';
import { IdentifyAspect, WindowCoveringAspect } from '@/aspects/index.js';
import { HomeAssistantClient } from '@/home-assistant-client/index.js';
import { HomeAssistantMatterEntity } from '@/models/index.js';

Expand All @@ -10,6 +10,7 @@ export class CoverDevice extends DeviceBase {
constructor(client: HomeAssistantClient, entity: HomeAssistantMatterEntity, config: DeviceBaseConfig) {
super(entity, DeviceTypes.WINDOW_COVERING, config);

this.addAspect(new IdentifyAspect(this.matter, entity));
this.addAspect(new WindowCoveringAspect(client, entity, this.matter));
}
}

0 comments on commit e82595e

Please sign in to comment.