eifinger / hass-weenect

Homeassistant integration for weenect
MIT License
10 stars 2 forks source link

fix: check for None to avoid TypeError during setup #308

Closed eifinger closed 1 year ago

eifinger commented 1 year ago

Fixes: #303

codecov[bot] commented 1 year ago

Codecov Report

Patch coverage: 88.46% and project coverage change: +0.19% :tada:

Comparison is base (82da8cb) 97.96% compared to head (3a9123f) 98.16%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #308 +/- ## ========================================== + Coverage 97.96% 98.16% +0.19% ========================================== Files 20 20 Lines 640 653 +13 ========================================== + Hits 627 641 +14 + Misses 13 12 -1 ``` | [Flag](https://app.codecov.io/gh/eifinger/hass-weenect/pull/308/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Kevin+Eifinger) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/eifinger/hass-weenect/pull/308/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Kevin+Eifinger) | `98.16% <88.46%> (+0.19%)` | :arrow_up: | 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=Kevin+Eifinger#carryforward-flags-in-the-pull-request-comment) to find out more. | [Files Changed](https://app.codecov.io/gh/eifinger/hass-weenect/pull/308?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Kevin+Eifinger) | Coverage Δ | | |---|---|---| | [custom\_components/weenect/\_\_init\_\_.py](https://app.codecov.io/gh/eifinger/hass-weenect/pull/308?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Kevin+Eifinger#diff-Y3VzdG9tX2NvbXBvbmVudHMvd2VlbmVjdC9fX2luaXRfXy5weQ==) | `93.67% <72.72%> (+1.36%)` | :arrow_up: | | [custom\_components/weenect/device\_tracker.py](https://app.codecov.io/gh/eifinger/hass-weenect/pull/308?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Kevin+Eifinger#diff-Y3VzdG9tX2NvbXBvbmVudHMvd2VlbmVjdC9kZXZpY2VfdHJhY2tlci5weQ==) | `100.00% <100.00%> (ø)` | | | [tests/conftest.py](https://app.codecov.io/gh/eifinger/hass-weenect/pull/308?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Kevin+Eifinger#diff-dGVzdHMvY29uZnRlc3QucHk=) | `100.00% <100.00%> (ø)` | | | [tests/test\_init.py](https://app.codecov.io/gh/eifinger/hass-weenect/pull/308?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Kevin+Eifinger#diff-dGVzdHMvdGVzdF9pbml0LnB5) | `100.00% <100.00%> (ø)` | |

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