Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Fixed Unit deprecation warning #562

Merged
merged 2 commits into from
Jan 4, 2024
Merged

Conversation

Airler
Copy link
Contributor

@Airler Airler commented Jan 4, 2024

Replaced TIME_MINUTES with UnitOfTime.MINUTES to fix deprecation warning.

Otherwise HA will show the following warning in log:

TIME_MINUTES was used from husqvarna_automower, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfTime.MINUTES instead.

Replaced TIME_MINUTES with UnitOfTime.MINUTES to fix deprecation warning.
@Thomas55555
Copy link
Owner

Seems like there was an issue with the tests. Can you rebase the PR to the main branch?

Copy link

codecov bot commented Jan 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (6b938fc) 98.96% compared to head (1176aa9) 98.96%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #562   +/-   ##
=======================================
  Coverage   98.96%   98.96%           
=======================================
  Files          16       16           
  Lines        1260     1260           
=======================================
  Hits         1247     1247           
  Misses         13       13           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Thomas55555
Copy link
Owner

Thx @Airler

@Thomas55555 Thomas55555 merged commit 4c58151 into Thomas55555:main Jan 4, 2024
6 checks passed
@Airler Airler deleted the patch-1 branch January 4, 2024 22:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants