Skip to content

Preserve a first-position device-tree resource - #74

Open
Jason-Morcos wants to merge 1 commit into
QuiteYellow:mainfrom
Moballo-LLC:codex/index-device-tree-first-resource
Open

Preserve a first-position device-tree resource#74
Jason-Morcos wants to merge 1 commit into
QuiteYellow:mainfrom
Moballo-LLC:codex/index-device-tree-first-resource

Conversation

@Jason-Morcos

Copy link
Copy Markdown
Contributor

Summary

  • inspect every href-bearing entry in a /device/0 batch
  • continue excluding the /device/0 container representation itself
  • cover a batch where /information/vs/0 is the first entry

Why

StateCache.index_device_tree() currently drops position zero unconditionally. Some batch layouts put an ordinary resource there rather than the device container, which causes that complete representation to disappear from the indexed sweep. The href identifies the container reliably; its position does not.

Validation

  • 677 SmartThings-Local tests
  • 1,834 LocalThings tests against this branch
  • wheel and sdist content validation
  • share-safety scan

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.

1 participant