Add setting to enable if entity is to be checked on startup#218
Merged
sveinse merged 4 commits intocustom-components:masterfrom Jul 23, 2025
Merged
Conversation
* Set default False
steinmn
reviewed
Jul 22, 2025
Collaborator
Author
|
@steinmn I updated according to your comments, and I think this looks better now. There is one remaining item I'd like to add. There is a guideline in HA that errors and warnings should not be produced when it's expected, so I need to change it to not log as warning or error when it an entity we know can go away. |
steinmn
approved these changes
Jul 23, 2025
Contributor
steinmn
left a comment
There was a problem hiding this comment.
LGTM
Should we add something in the readme on this? Or is it more an instruction we include with the beta?
Collaborator
Author
|
@steinmn Now this is ready. It makes a info note in the logs when an attribute becomes available and when it becomes unavailable according to https://developers.home-assistant.io/docs/core/integration-quality-scale/rules/log-when-unavailable |
steinmn
approved these changes
Jul 23, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
It turns out that some Zaptec attributes are not always present from Zaptec. An example is "total_charge_power_session". The recommendation from HA is to not add entities that aren't available, but we have to circumvent that in this case. Instead a setting have been added so it can be later turned on if wanted.
Fixes #217