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

Stop overriding deprecated methods of NumberEntity #569

Merged
merged 3 commits into from
Jul 11, 2022

Conversation

JasperS2307
Copy link
Contributor

@JasperS2307 JasperS2307 commented Jul 9, 2022

Fixes: #562

Very minimal changes to get rid of the deprecation warnings regarding overwriting deprecated methods of the NumberEntity.

Note, the default values for min/max/step are the same but with one decimal, think I prefer defining them explicitly to not depend on the default values stat the same, but would be happy to change it if you prefer the default values.

Expected/tested behaviour:

  • No more deprecation warning show up in the logs
  • No changes in behaviour

Copy link
Collaborator

@KapJI KapJI left a comment

Choose a reason for hiding this comment

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

Please fix CI errors. Check CONTRIBUTING.md for more details.

custom_components/google_home/number.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@KapJI KapJI left a comment

Choose a reason for hiding this comment

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

Thanks!

@KapJI KapJI added the refactoring Refactoring label Jul 11, 2022
@KapJI KapJI merged commit c897ef8 into leikoilja:master Jul 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactoring Refactoring
Projects
None yet
Development

Successfully merging this pull request may close these issues.

HA BETA - 2022.7.0b0 - Deprecation Warnings
2 participants