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

Add deprecation to legacy forecast for Weather #97294

Merged
merged 17 commits into from Aug 29, 2023

Conversation

gjohansson-ST
Copy link
Member

Proposed change

Adds deprecation notice to weather for legacy forecast attributes

Type of change

  • Dependency upgrade
  • Bugfix (non-breaking change which fixes an issue)
  • New integration (thank you!)
  • New feature (which adds functionality to an existing integration)
  • Deprecation (breaking change to happen in the future)
  • Breaking change (fix/feature causing existing functionality to break)
  • Code quality improvements to existing code or addition of tests

Additional information

  • This PR fixes or closes issue: fixes #
  • This PR is related to issue:
  • Link to documentation pull request:

Checklist

  • The code change is tested and works locally.
  • Local tests pass. Your PR cannot be merged unless tests pass
  • There is no commented out code in this PR.
  • I have followed the development checklist
  • I have followed the perfect PR recommendations
  • The code has been formatted using Black (black --fast homeassistant tests)
  • Tests have been added to verify that the new code works.

If user exposed functionality or configuration variables are added/changed:

If the code communicates with devices, web services, or third-party tools:

  • The manifest file has all fields filled out correctly.
    Updated and included derived files by running: python3 -m script.hassfest.
  • New or updated dependencies have been added to requirements_all.txt.
    Updated by running python3 -m script.gen_requirements_all.
  • For the updated dependencies - a link to the changelog, or at minimum a diff between library versions is added to the PR description.
  • Untested files have been added to .coveragerc.

To help with the load of incoming pull requests:

@gjohansson-ST gjohansson-ST requested a review from a team as a code owner July 26, 2023 20:48
@home-assistant home-assistant bot added cla-signed core deprecation Indicates a breaking change to happen in the future integration: weather small-pr PRs with less than 30 lines. labels Jul 26, 2023
@home-assistant
Copy link

Hey there @home-assistant/core, mind taking a look at this pull request as it has been labeled with an integration (weather) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of weather can trigger bot actions by commenting:

  • @home-assistant close Closes the pull request.
  • @home-assistant rename Awesome new title Renames the pull request.
  • @home-assistant reopen Reopen the pull request.
  • @home-assistant unassign weather Removes the current integration label and assignees on the pull request, add the integration domain after the command.

Copy link

@fellnerse fellnerse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gjohansson-ST gjohansson-ST changed the title Add back deprecation to legacy forecast Add back deprecation to legacy forecast for Weather Jul 27, 2023
@gjohansson-ST gjohansson-ST added the smash Indicator this PR is close to finish for merging or closing label Jul 27, 2023
Copy link
Contributor

@emontnemery emontnemery left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could open an issue like we do here:

ir.async_create_issue(
hass,
DOMAIN,
f"deprecated_vacuum_base_class_{self.platform.platform_name}",
breaks_in_ha_version="2024.2.0",
is_fixable=False,
is_persistent=False,
issue_domain=self.platform.platform_name,
severity=ir.IssueSeverity.WARNING,
translation_key="deprecated_vacuum_base_class",
translation_placeholders={
"platform": self.platform.platform_name,
},
)

@gjohansson-ST gjohansson-ST changed the title Add back deprecation to legacy forecast for Weather Add deprecation to legacy forecast for Weather Aug 7, 2023
@emontnemery emontnemery marked this pull request as draft August 7, 2023 12:04
@gjohansson-ST gjohansson-ST force-pushed the weather-add-deprecation-forecast-legacy branch from 7d370a4 to 6f5a9ee Compare August 7, 2023 14:59
@gjohansson-ST gjohansson-ST marked this pull request as ready for review August 7, 2023 14:59
homeassistant/components/weather/__init__.py Outdated Show resolved Hide resolved
homeassistant/components/weather/__init__.py Outdated Show resolved Hide resolved
@home-assistant home-assistant bot marked this pull request as draft August 8, 2023 06:36
@home-assistant
Copy link

home-assistant bot commented Aug 8, 2023

Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍

Learn more about our pull request process.

@gjohansson-ST gjohansson-ST removed the smash Indicator this PR is close to finish for merging or closing label Aug 8, 2023
@gjohansson-ST gjohansson-ST force-pushed the weather-add-deprecation-forecast-legacy branch from 5c16599 to 1b668a2 Compare August 8, 2023 17:38
@gjohansson-ST gjohansson-ST marked this pull request as ready for review August 8, 2023 17:39
@home-assistant home-assistant bot marked this pull request as draft August 15, 2023 10:12
@gjohansson-ST gjohansson-ST marked this pull request as ready for review August 15, 2023 18:45
@gjohansson-ST gjohansson-ST force-pushed the weather-add-deprecation-forecast-legacy branch from dd92a14 to da4a125 Compare August 28, 2023 19:54
Copy link
Contributor

@emontnemery emontnemery left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @gjohansson-ST 👍

Let's clean up the tests as discussed in discord in a follow-up

@gjohansson-ST gjohansson-ST merged commit 7a690d7 into dev Aug 29, 2023
34 checks passed
@gjohansson-ST gjohansson-ST deleted the weather-add-deprecation-forecast-legacy branch August 29, 2023 08:39
@github-actions github-actions bot locked and limited conversation to collaborators Aug 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla-signed core deprecation Indicates a breaking change to happen in the future integration: weather Quality Scale: internal small-pr PRs with less than 30 lines.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants