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

The pirateweather integration is using deprecated forecast (2023.9.0b0) #136

Closed
TheFes opened this issue Aug 31, 2023 · 16 comments
Closed
Assignees
Labels
keep Issues to keep open

Comments

@TheFes
Copy link

TheFes commented Aug 31, 2023

HA will remove the forecast attribute, you will have to move to a new method to include the forecast

see https://developers.home-assistant.io/blog/2023/08/07/weather_entity_forecast_types/

@alexander0042
Copy link
Collaborator

Thanks for the heads up here! I've had my eye on the changes to the source, so great to see everything documented. The current approach leaves much to be desired, and so I'm really happy with these new updates

@alexander0042 alexander0042 self-assigned this Aug 31, 2023
@alexander0042 alexander0042 added the keep Issues to keep open label Aug 31, 2023
@Intecpsp
Copy link

Intecpsp commented Sep 9, 2023

Any update here now that this is GA?

@tcfurrer
Copy link

@Intecpsp it's only a warning for now, and won't be a real problem until March 2024 (if I understand correctly). I assume @alexander0042 will prioritize/schedule this issue to be fixed in a new release some time before then.

Attaching a screenshot of the message I got about this on my HA instance.
image

@dmbreakey
Copy link

Apologies for the repeat, but I mentioned this on #137 but it doesn't seem like that's been noticed, so adding it here.

You might be interested to know that AstroWeather recently updated their integration to support the new service mode.

@TheFes
Copy link
Author

TheFes commented Oct 24, 2023

Just a request, please leave the forecasts in until 2024.3 like the core integrations do as well.
Another custom weather integration removed it already, and I still rely on the forecast attribute for a template weather entity.

@Chaotic
Copy link

Chaotic commented Oct 24, 2023

Any update on this? Been a few months at this point since the change went live.

@alexander0042
Copy link
Collaborator

Apologies for the radio silence, but I've got good news here! I'm going to post a longer update as a project, but in short, I have a immediate solution to this specific issue that should address this. It keeps 95% of the same code and structure, with a little translation layer to fit it into the new Home Assistant format. I'm going to leave it running on my machine for a couple days to make sure it's working, but then I'll push it out as an update!

In the process of fixing this, I ended up spending a fair bit of time thinking about the underlying structure, and I think that it makes the most sense to restructure the integration using all the new tools. Going to push this as a branch, so will be available for discussion but won't come out as an update. This should fix the occasional update issue, remove the legacy Dark Sky dependency, and allow for it to eventually make it into the default. However, it will likely break compatibility with the existing integration, hence the fix to this one first!

@TheFes
Copy link
Author

TheFes commented Nov 11, 2023

Will you include the forecast attribute until 2024.3 or will you immediately remove it?

@cloneofghosts
Copy link
Collaborator

Apologies for the radio silence, but I've got good news here! I'm going to post a longer update as a project, but in short, I have a immediate solution to this specific issue that should address this. It keeps 95% of the same code and structure, with a little translation layer to fit it into the new Home Assistant format. I'm going to leave it running on my machine for a couple days to make sure it's working, but then I'll push it out as an update!

In the process of fixing this, I ended up spending a fair bit of time thinking about the underlying structure, and I think that it makes the most sense to restructure the integration using all the new tools. Going to push this as a branch, so will be available for discussion but won't come out as an update. This should fix the occasional update issue, remove the legacy Dark Sky dependency, and allow for it to eventually make it into the default. However, it will likely break compatibility with the existing integration, hence the fix to this one first!

You could always publish both the immediate and long term fixes as branches on the project and release beta versions for people to try as you can download beta versions in HACS. Could always be helpful for the immediate fix to test on other setups besides your own.

@alexander0042
Copy link
Collaborator

alexander0042 commented Nov 14, 2023

@TheFes, the plan is to keep this repo around so long as there's no major incompatibility within Home Assistant that makes it impossible. The key reason to transition to a new codebase to get added to the built in HA install is because of the YAML support. I want to keep this one compatible with legacy yaml, but that really isn't possible in order to be added as a new HA integration.

@cloneofghosts, love this plan, and is exactly what I'm planning on doing. You'll see a "beta" tag today that is the existing integration with this fix, along with a (broken) "future" branch that I'll use to put together a fully HA compliant version going forward.

@alexander0042
Copy link
Collaborator

OK, and pre-release is live! Looks like anyone using HACS should see it if they enabled "show pre-release" when it was installed, otherwise you need to remove and re-add the Pirate Weather repo in HACS

@mermelmadness
Copy link

OK, and pre-release is live! Looks like anyone using HACS should see it if they enabled "show pre-release" when it was installed, otherwise you need to remove and re-add the Pirate Weather repo in HACS

Great. I'll check it out shortly. I integrate Pirate Weather forecast attribute data into a lot of my stuff, including this LED Matrix information panel, so I'll let you know how things integrate with the update.
IMG_6131

@cloneofghosts
Copy link
Collaborator

cloneofghosts commented Nov 15, 2023

Outside of the time sensor issue everything has been running smoothly on my end. Just wanted to note that if you're using a custom weather card it might not work correctly with the update. They'll need to update the card on their end to support the forecast attribute otherwise it won't work correctly

Maybe it's something that @alexander0042 could mention in the release notes or the repositories readme file.

@cloneofghosts cloneofghosts pinned this issue Nov 24, 2023
@cloneofghosts
Copy link
Collaborator

@alexander0042 This is ready for a public release no? Haven't seen any new issues pop up since the time parameter issue was fixed on the 15th. I have the ability to create/edit releases so I can make the most recent pre-release the latest release version if you'd like.

@alexander0042
Copy link
Collaborator

Now that I've tested the version control (which would have been bad), I agree we're ready to push to main, and would appreciate if you could do that! I just pushed a new commit reverting my testing changes, so I think you'll have to make a new tag and mark that one as the official release

@cloneofghosts
Copy link
Collaborator

cloneofghosts commented Nov 28, 2023

Stable version released. Thank you to everyone who tested the pre-release version.

@github-project-automation github-project-automation bot moved this from In Progress to Done in Pirate Weather Home Assistant Nov 28, 2023
@cloneofghosts cloneofghosts unpinned this issue Nov 28, 2023
@Pirate-Weather Pirate-Weather locked and limited conversation to collaborators Jan 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
keep Issues to keep open
Projects
Development

No branches or pull requests

8 participants