Bluetooth-Devices / bthome-ble

Parser for BTHome BLE devices
https://bthome.io/
MIT License
64 stars 11 forks source link

fix: replace datetime.utcfromtimestamp #87

Closed cdce8p closed 10 months ago

cdce8p commented 10 months ago

datetime.utcfromtimestamp will be deprecated in Python 3.12 https://docs.python.org/3.12/library/datetime.html#datetime.datetime.utcfromtimestamp

codecov[bot] commented 10 months ago

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (2bfcd9b) 79.26% compared to head (cdff04d) 79.26%. Report is 1 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #87 +/- ## ======================================= Coverage 79.26% 79.26% ======================================= Files 6 6 Lines 492 492 Branches 73 73 ======================================= Hits 390 390 Misses 80 80 Partials 22 22 ``` | [Files Changed](https://app.codecov.io/gh/Bluetooth-Devices/bthome-ble/pull/87?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Bluetooth-Devices) | Coverage Δ | | |---|---|---| | [src/bthome\_ble/\_\_init\_\_.py](https://app.codecov.io/gh/Bluetooth-Devices/bthome-ble/pull/87?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Bluetooth-Devices#diff-c3JjL2J0aG9tZV9ibGUvX19pbml0X18ucHk=) | `100.00% <100.00%> (ø)` | | | [src/bthome\_ble/parser.py](https://app.codecov.io/gh/Bluetooth-Devices/bthome-ble/pull/87?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Bluetooth-Devices#diff-c3JjL2J0aG9tZV9ibGUvcGFyc2VyLnB5) | `85.66% <100.00%> (ø)` | |

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

bdraco commented 10 months ago

Thanks @cdce8p