Skip to content

Commit

Permalink
Fix TypeScript linting issue by ignoring type check for selectEntity …
Browse files Browse the repository at this point in the history
…assignment
  • Loading branch information
Luligu committed Jan 8, 2025
1 parent 358f50d commit a4cd72f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/platform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,8 @@ export class HomeAssistantPlatform extends MatterbridgeDynamicPlatform {
const [domain, name] = entity.entity_id.split('.');
if (!['automation', 'scene', 'script'].includes(domain)) continue;
const entityName = entity.name ?? entity.original_name;
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
if (entityName && this.selectEntity) this.selectEntity.set(entity.id, { name: entity.entity_id, description: entityName, icon: 'hub' });
if (!isValidString(entityName)) continue;
if (
Expand Down

0 comments on commit a4cd72f

Please sign in to comment.