ollo69 / ha-smartthinq-sensors

HomeAssistant custom integration for SmartThinQ LG devices configurable with Lovelace User Interface.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not working on 2024.4.0b0

TheFes opened this issue · comments

Describe the bug
Integration is not working and this message appears in the log

Logger: homeassistant.setup
Source: setup.py:273
First occurred: 19:40:01 (1 occurrences)
Last logged: 19:40:01

Setup failed for custom integration 'smartthinq_sensors': Requirements for smartthinq_sensors not found: ['pycountry<23.0.0,>=22.1.10'].

Expected behavior
If applicable, a clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Environment details:

  • Environment (HASSIO, Raspbian, etc): HAOS
  • Home Assistant version installed: 2024.4.0b0
  • Component version installed: v0.38.7
  • Last know working version: HA 2024.3
  • LG device type and model with issue: NA
  • LG devices connected (list): NA

Output of HA logs
Paste the relavant output of the HA log here.

Logger: homeassistant.setup
Source: setup.py:273
First occurred: 19:40:01 (1 occurrences)
Last logged: 19:40:01

Setup failed for custom integration 'smartthinq_sensors': Requirements for smartthinq_sensors not found: ['pycountry<23.0.0,>=22.1.10'].

Additional context
Add any other context about the problem here.

Thanks for information, I suppose that some integration install other version. Do you have web radio installed?
Anyway I will change requirement to be less restrictive

Do you mean Radio Browser?
I have that one installed.

I asked about pycountry in the beta channel on the HA Discord, the response was:

It’s pinned to the newer than 23 because there is a mistake in the older versions that brings in the whole setuptools stack

Just to say "me too" - precisely the same issue. (Sorry if me too is frowned on)

Thanks for information, I suppose that some integration install other version. Do you have web radio installed? Anyway I will change requirement to be less restrictive

I don't have that installed but I also have this issue.

This seems the same as issue 693 so I posed it last week there. I edited manifest.json at the location \\homeassistant.local\config\homeassistant\custom_components\smartthinq_sensors to say pycountry>23.0.0 and it seems to be working now.

@pcartwright81 suggestion seems to work for me (thanks for that), but I don't feel confident enough about python modules to create a PR.

Home assistant seems to have constrained pycountry to >23.12.11 two weeks ago.

home-assistant/core@f3984a9

This custom integration constrains pycountry to pycountry<23.0.0,>=22.1.10

You can't be >23.12.11 and <23.0.0. I suspect that is the problem.

commented

Just noticed this as well when I upgraded to 2024.4.0b0

This seems the same as issue 693 so I posed it last week there. I edited manifest.json at the location \homeassistant.local\config\homeassistant\custom_components\smartthinq_sensors to say pycountry>23.0.0 and it seems to be working now.

the solution also worked perfectly for me

Noticed too after installing 2024.4.0b0 on my testconfig.. Not using Webradio. I edited manifest.json as advised above but changing the line to "requirements": ["pycountry<23.0.0,>=22.1.10", "xmltodict>=0.13.0", "charset_normalizer>=3.2.0"],
did not solve the issue. Please advise!

Update: issue fixed with line "requirements": ["pycountry>23.0.0", "xmltodict>=0.13.0", "charset_normalizer>=3.2.0"],

Awaiting your final fix for the production release of 2024.4 :-). Cheers!

Same issue on a clean 2024.4B0. Meaning nothing else installed other than smarthinq. Still works great on my 2024.3

Confirmed:
Issue fixed with line "requirements": ["pycountry>23.0.0", "xmltodict>=0.13.0", "charset_normalizer>=3.2.0"],

commented

updated and fixed, and appears to be working again.

This seems the same as issue 693 so I posed it last week there. I edited manifest.json at the location \homeassistant.local\config\homeassistant\custom_components\smartthinq_sensors to say pycountry>23.0.0 and it seems to be working now.

Change to "requirements": ["pycountry>23.0.0,>=22.1.10", "xmltodict>=0.13.0", "charset_normalizer>=3.2.0"],
, restart HA and now it is working.

pycountry>23.0.0,>=22.1.10

Pointless. If it satisfies >23.0.0 it also satisfies >=22.1.10. The latter is unneeded

The following integrations and platforms could not be set up:

smartthinq_sensors

Config-flow kon niet geladen worden: 500 Internal Server Error Server got itself in trouble

Still not loading

Logger: homeassistant.setup
Source: setup.py:273
First occurred: 4:35:00 PM (1 occurrences)
Last logged: 4:35:00 PM

Setup failed for custom integration 'smartthinq_sensors': Requirements for smartthinq_sensors not found: ['pycountry<23.0.0,>=22.1.10'].

@ALL,

issue should be fixed with last release v0.39.0, please report here if you still have problem.

@ALL,

issue should be fixed with last release v0.39.0, please report here if you still have problem.

Update is not mentioned/pushed as update in HA/HACS store? It needs to be updated manually?

If you don't wait to wait the HACS auto refresh you need to force repository update selecting HACS integration

image

Cool. That worked! Love you.

@ALL,

issue should be fixed with last release v0.39.0, please report here if you still have problem.

Confirmed. Problem solved. Thank you!

Update applied and works, thanks!

commented

thanks for the quick patch on this!

Close this because fixed with last release