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

Cchardet blocked by Home Assistant #66

Closed
JoeSchubert opened this issue Feb 24, 2023 · 5 comments
Closed

Cchardet blocked by Home Assistant #66

JoeSchubert opened this issue Feb 24, 2023 · 5 comments
Assignees

Comments

@JoeSchubert
Copy link
Collaborator

JoeSchubert commented Feb 24, 2023

https://github.com/JoshuaMulliken/wyzeapy/blob/466cb527d0d2c212a7ca4aecff35c3efb1d79617/pyproject.toml#L12

As pointed out here: SecKatie/ha-wyzeapi#462 (comment)

This package is unmaintained and as of last week is now blocked by Home assistant.

This line should be updated to read:

faust-cchardet = "^2.1.18"

I am currently on mobile but will submit a PR as soon as I'm on my computer. Opening this issue as a reminder.

We just need to make sure that the functions being used retained the same names/parameters/returns.

@JoeSchubert JoeSchubert self-assigned this Feb 24, 2023
@JoeSchubert
Copy link
Collaborator Author

JoeSchubert commented Feb 26, 2023

So I cannot manage to fix this without really breaking my environment it seems right now (might be able to while jumping through hoops).

Basically, I looked through the code. It doesn't even seem that cchardet is still used anywhere... it is simply listed in pyproject.toml's dependency list still.

So, that line needs to be deleted, then poetry needs to be re-run to update the dependencies in the poetry.lock file.

@JoshuaMulliken I assume that you do this whenever you push a new version anyway, so it may be easier for you to simply delete that line and bump the version rather than me trying to get everything setup for poetry to even run (I already made it about 10gb into dependencies for windows then realized that it won't build under Python 3.11 before coming here to update this issue).

@brg468
Copy link
Collaborator

brg468 commented Feb 26, 2023

I agree, I didn’t see anything that is actually using cchardet in the current code, but I’m also not real familiar with what it does. Let me know if I can be of more help.

@JoeSchubert
Copy link
Collaborator Author

I agree, I didn’t see anything that is actually using cchardet in the current code, but I’m also not real familiar with what it does. Let me know if I can be of more help.

If you want to give it a try, you should be able to remove that line then run 'poetry remove cchardet' in the project directory. It should rebuild the poetry lock file.

If I don't hear anything back from Josh in the next few days, I'll spin up another dev environment just to do that.

@brg468
Copy link
Collaborator

brg468 commented Feb 26, 2023

@JoeSchubert can you take a look? I think it updated correctly, it seems like the formatting of poetry.lock changed when I updated it but I think its correct.

https://github.com/brg468/wyzeapy/tree/update-deps

Edit: Can confirm the integrations loads with no errors on the the latest HA dev branch.

@JoeSchubert
Copy link
Collaborator Author

@brg468 yeah. That all looks fine to me as you removed it and rebuilt the file correctly.

I would probably checkout a new branch from main and just cherry-pick that single commit though for the PR to keep it clean.

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

2 participants