Skip to content

Respect Home Assistant entity lifecycle for sensor hub references - #2111

Merged
wills106 merged 2 commits into
wills106:mainfrom
rosenrot00:patch-29
Jun 5, 2026
Merged

Respect Home Assistant entity lifecycle for sensor hub references#2111
wills106 merged 2 commits into
wills106:mainfrom
rosenrot00:patch-29

Conversation

@rosenrot00

Copy link
Copy Markdown
Contributor

This refactors sensor registration so the hub only stores live sensor entity references after Home Assistant has actually added the entity via async_added_to_hass. Sensor metadata is kept separately in sensorDescriptions for register planning and Energy Dashboard mapping, which avoids keeping entity objects for disabled entities.

@wills106

wills106 commented Jun 5, 2026

Copy link
Copy Markdown
Owner

Which Issue does this PR relate to? Or is it just a general clean up?

Just so I know how to address it in the next release.

@wills106
wills106 merged commit 7f846d0 into wills106:main Jun 5, 2026
13 checks passed
@rosenrot00

Copy link
Copy Markdown
Contributor Author

This solves the issue that was mentioned in the collective thread regarding reloading loops on multiple inverters.

@wills106

wills106 commented Jun 5, 2026

Copy link
Copy Markdown
Owner

Ahh ok.

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