Skip to content

Add domain property to entity proxies#172

Merged
zoe-codez merged 2 commits into
mainfrom
entity_domain_property
Jan 11, 2026
Merged

Add domain property to entity proxies#172
zoe-codez merged 2 commits into
mainfrom
entity_domain_property

Conversation

@zoe-codez
Copy link
Copy Markdown
Member

@zoe-codez zoe-codez commented Jan 11, 2026

📬 Changes

  • added domain property to aid in filtering synapse entities

🗒️ Checklist

  • Read the contribution guide and accept the
    code of conduct
  • Readme and docs (updated or not needed)
  • Tests (added, updated or not needed)

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request adds a domain property to entity proxies in the Synapse library to facilitate filtering entities by their domain type (e.g., "sensor", "binary_sensor", "switch").

Changes:

  • Added a domain getter to entity proxies that returns the entity's domain string
  • Updated type definitions to include the domain property in CommonMethods type signature
  • Added comprehensive test coverage for all entity types
  • Updated dependencies (unrelated to the feature)

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/services/generator.service.mts Added "domain" to proxy keys and implemented domain property getter
src/helpers/common-config.mts Added domain property to CommonMethods type with ExtractDomain helper
src/test/generator.spec.mts Added comprehensive tests for domain property across all entity types
package.json Updated dependency versions (unrelated dependency updates)
yarn.lock Lock file updates corresponding to package.json changes

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@zoe-codez zoe-codez merged commit 34fe4d7 into main Jan 11, 2026
10 checks passed
@zoe-codez zoe-codez deleted the entity_domain_property branch January 11, 2026 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants