Thomas55555 / husqvarna_automower

Custom component for Home Assistant to monitor and control your Husqvarna Automower
https://github.com/Thomas55555/husqvarna_automower
MIT License
105 stars 28 forks source link

Fixed Unit deprecation warning #562

Closed Airler closed 8 months ago

Airler commented 8 months ago

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.

Thomas55555 commented 8 months ago

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

codecov[bot] commented 8 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

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

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

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

Thomas55555 commented 8 months ago

Thx @Airler