Skip to content

fix: import TFloorId in generated services.mts - #156

Merged
zoe-codez merged 1 commit into
Digital-Alchemy-TS:mainfrom
jaredcat:fix/import-tfloorid
Aug 18, 2026
Merged

zoe-codez merged 1 commit into
Digital-Alchemy-TS:mainfrom
jaredcat:fix/import-tfloorid

Conversation

@jaredcat

@jaredcat jaredcat commented Aug 15, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Floor selectors (src/selectors/floor-selector.service.mts, added in More service selectors #142) emit TFloorId on floor-targeted service fields.
  • The generated services.mts import list in build.service.mts included TAreaId / TDeviceId / TLabelId but not TFloorId.
  • Any Home Assistant instance with floor selectors (including core homeassistant.* floor fields) gets a Cannot find name 'TFloorId' type error after npx type-writer.

Test plan

  • Run npx type-writer against an HA instance that has floors / floor-targeted services
  • Confirm generated src/hass/services.mts imports TFloorId next to the other identifier types
  • tsc --noEmit on the consumer project succeeds without a post-generate patch

Floor selectors emit TFloorId but the services file import list omitted it, so type-writer output fails to typecheck on any instance with floor-targeted services.

Co-authored-by: Cursor <cursoragent@cursor.com>
@zoe-codez

Copy link
Copy Markdown
Member

LGTM

@zoe-codez
zoe-codez merged commit b041832 into Digital-Alchemy-TS:main Aug 18, 2026
1 check passed
@jaredcat
jaredcat deleted the fix/import-tfloorid branch August 18, 2026 00:42
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