Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UL Length incompatible with release 2023.4 #297

Closed
robchandhok opened this issue Apr 8, 2023 · 5 comments
Closed

UL Length incompatible with release 2023.4 #297

robchandhok opened this issue Apr 8, 2023 · 5 comments

Comments

@robchandhok
Copy link
Contributor

Upon updating to 2023.4.0 (and .1 later) there are now a lot of these errors:

2023-04-08 11:50:33.049 ERROR (Recorder) [homeassistant.components.recorder.models.context] Error converting ulid ec_27d790_e4f2ce9dacca95da39232d3b6e to bytes: ULID must be a 26 character string: ec_27d790_e4f2ce9dacca95da39232d3b6e

It appears that CONTEXT_ID_CHARACTER_LIMIT is just incompatible, but I don't know enough about it to suggest the change.

See also where used:

context_id = context_id[:CONTEXT_ID_CHARACTER_LIMIT]

See also this HA issue (closed) which resolved to the "adaptive lighting" custom component, not HA.
home-assistant/core#91019

@digitalconverg
Copy link

same issue reported as home-assistant/core#91249

@robchandhok
Copy link
Contributor Author

Correct. Since the recorder component won’t be changed, the custom component has to be updated.

@digitalconverg
Copy link

Changed the value in const.py from CONTEXT_ID_CHARACTER_LIMIT = 36 to 26 and it appears to have resolved the problem.

@robchandhok
Copy link
Contributor Author

Seems right. Can you do a PR? but @danobot or someone will have to merge/release it.

@ndbroadbent
Copy link
Contributor

ndbroadbent commented May 4, 2023

I think this might be breaking some of my entity controller instances (but not all.) I might have to downgrade to 2023.3 until it's working again.


Sorry false alarm, it was something else. (I just moved to a new house and broke things!) In my case I'm using "packages" to organize my config into separate YAML files, and I had accidentally re-used the same top-level key, so one of my config hashes was getting overridden by a different one.

I did downgrade though. I SSH'd into my machine and ran: sudo ha core update --version 2023.3.6
So I'll still be following this issue and upgrade once it's working properly again without errors

danobot added a commit that referenced this issue Jun 20, 2023
fix: context id length. Resolves #297
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

No branches or pull requests

3 participants