DurgNomis-drol / mytoyota

Python client for Toyota Connected Services API
MIT License
81 stars 33 forks source link

Fix: NoneType object has no attribute `unit` in `self._electric.fuel_range.unit` #293

Closed CM000n closed 10 months ago

CM000n commented 10 months ago

Fix https://github.com/DurgNomis-drol/mytoyota/issues/292

codecov[bot] commented 10 months ago

Codecov Report

Attention: 12 lines in your changes are missing coverage. Please review.

Comparison is base (5c785b9) 71.38% compared to head (5b68804) 71.28%.

Files Patch % Lines
mytoyota/models/dashboard.py 29.41% 12 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #293 +/- ## ========================================== - Coverage 71.38% 71.28% -0.11% ========================================== Files 28 28 Lines 1384 1386 +2 ========================================== Hits 988 988 - Misses 396 398 +2 ``` | [Flag](https://app.codecov.io/gh/DurgNomis-drol/mytoyota/pull/293/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Simon+Hansen) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/DurgNomis-drol/mytoyota/pull/293/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Simon+Hansen) | `71.28% <29.41%> (-0.11%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Simon+Hansen#carryforward-flags-in-the-pull-request-comment) to find out more.

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