-
-
Notifications
You must be signed in to change notification settings - Fork 31.2k
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
Radarr Integration loads without error but all sensors Unavailable #51390
Comments
So I know what the problem is. They have removed the old API endpoint in version 4 nightlies and now /v3 is needed.
I then get errors so seems like there is something else in core?:
|
Radarr support say the old API has been deprecated for some time and the new API will work with all current supported releases of Radarr - current v3 stable as well as the V4 nightlies. |
Same issue here, number 3 since last nights update, will follow up with any progress I may have |
ok well I fixed this but I fear no way a PR will be accepted because it's using yaml still.
Need to copy contents of whole folder to config/custom_components and edit manifest.json to include a version number. Then replace sensor.py with this:
OR you can copy my sensor.py and manifest.json from here: I also patched Maykar's upcoming media component to add api v3 (one minor change) and made a PR for it |
@ronanmu Any chance you can take a look at and maybe fix this? |
Can anyone please fix this integration? |
Did you try the above fix? It's working for me (except for the commands sensor) |
I haven’t had time to mess with it but I should be able to try it in a couple weeks. |
I have the same bug on mine config |
I wonder if people are still using radarr v2. If we can forget about v2, it will be easier to add config flow. Is anyone watching this issue working on that? |
no one so far seems to care about this.. |
Except possible me. I would have to either find a good existing library or make my own. |
Well the current integration works for old API.. It's only V3 that doesn't work and my custom hack of the core component works for v3.. just not the old commands function.
Why when the hack works is a new library needed? Is that needed to use the config flow? I did look at the Sonarr component which was updated a while ago and uses the config flow but it's just beyond my skills. I was also referring to the devs and code owner for this integration being uninterested in fixing it not people responding here... |
The Sonarr integration uses the Instead, I think that building a new Radarr integration based on What's exciting is that the This means that a successful Home Assistant plugin for Radarr based on the References: Footnotes |
I am also considering writing the radarr config flow. |
The issue with pyarr is it does not throw exceptions for things like authentication and its not async. We like that here. You will now see that I have a PR open with a fresh new library. 🚀 |
Well 2021.12.0b0 completely breaks the integration so good news if a new one is coming. |
Its broken if you are running custom. Something was changed in the imports. |
Yeah I was running a modified version as per above as a custom component because it didn't support the latest API |
Can you confirm from this post that I made the correct modifications in the correct file? |
You would have to share with me the folder you made. |
Check discord. I sent you my copy. |
Are you by any chance also using Sabnzbd? This is erroring in 2021.12.0.x as well. I raised an issue there #61306 but it seems an upstream library is the culprit for that. |
No. But I may look into it. I'm currently working no some new integrations. |
Thanks. It's really weird because just using an API Call I think I can get the same data as the integration anyway by using a rest sensor so I dunno why HA is doing it the way that it currently is. |
A change has been made on how timeouts are handled. The timeout context is no longer used with aiohttp. That's why. Actually, the loop argument is more the problem here and is deprecated. |
Hey, I am having a similar issue. If you guys are anywhere near getting this resolved I wouldn't mind beta testing whatever you got. |
You can download a working version as a custom component from my repo |
Keep in mind that if you use this custom component, to remove it and re-setup the integration when it is officially released. The config entries will be different. |
Yes. Thanks for pointing that out. It serves a purpose for now though and I'll keep an eye on the release notes too. |
This comment was marked as abuse.
This comment was marked as abuse.
The reason is HA is only supporting v2 API still. This radarr is using API v3. There has been a PR to fix this and add GUI confir since many months still not merged, |
This comment was marked as abuse.
This comment was marked as abuse.
The PR seems to be failing black and pip check. Do these need to be fixed before they'll accept the PR? |
This comment was marked as abuse.
This comment was marked as abuse.
The target branch for the PR is not dev, so that does not matter. It's whenever @balloob wants to review it.
It's quite the opposite, actually. Remember that this is volunteer work and the members have their own agendas of what needs to be done for each release. Each release is huge. Just look at the last release. It gets better and better. I prefer they stick to that plan. Anyone is free to move anything that is being proposed into custom_components and run it that way. |
Is there some trick I'm missing to get it to work from custom components? I cloned your radarr folder and slide it into the custom_components but it's not an option. |
Where did you clone it from? |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
This still is not working |
Like @DavidFW1960 says it is still not working. |
still not working on last version |
Still not Working on last version |
Not until next release, but be sure to read the posted issues. A lot of changes are being made to modernize things but still a WIP. |
Will look for this on next release |
Oh! Great! Thanks a lot. |
@home-assistant close |
The problem
As per the title the Radarr Integration is not giving any errors and is loading but all sensors show as unavailable
What is version of Home Assistant Core has the issue?
2021.6.x
What was the last working version of Home Assistant Core?
one of the 2021.6 betas and certainly 2021.5.5
What type of installation are you running?
Home Assistant Supervised
Integration causing the issue
Radarr
Link to integration documentation on our website
https://www.home-assistant.io/integrations/radarr/
Example YAML snippet
Additional information
No response
The text was updated successfully, but these errors were encountered: