catduckgnaf / ryobi_gdo

Latest and Greatest Home Assistant Custom Integration for Ryobi GDO
Other
10 stars 6 forks source link

fix: add tests and fixes based on tests #11

Closed firstof9 closed 10 months ago

firstof9 commented 10 months ago

Proposed change

Add tests Fixes based on tests

Type of change

Example entry for configuration.yaml:

# Example configuration.yaml

Additional information

Checklist

If user exposed functionality or configuration variables are added/changed:

firstof9 commented 10 months ago
---------- coverage: platform linux, python 3.10.12-final-0 ----------
Name                                           Stmts   Miss  Cover   Missing
----------------------------------------------------------------------------
custom_components/__init__.py                      0      0   100%
custom_components/ryobi_gdo/__init__.py           28      1    96%   40
custom_components/ryobi_gdo/api.py               136     55    60%   66-67, 72-76, 91-92, 97-112, 123-124, 126, 154-155, 160, 164, 168, 172, 176, 180, 184-223
custom_components/ryobi_gdo/binary_sensor.py      40      2    95%   81-82
custom_components/ryobi_gdo/config_flow.py         7      0   100%
custom_components/ryobi_gdo/const.py              16      0   100%
custom_components/ryobi_gdo/coordinator.py        26      2    92%   41, 45
custom_components/ryobi_gdo/cover.py              45      4    91%   86-87, 91-92
custom_components/ryobi_gdo/sensor.py             47      1    98%   96
custom_components/ryobi_gdo/switch.py             36      5    86%   56, 61-62, 66-67
----------------------------------------------------------------------------
TOTAL                                            381     70    82%

Looks like 82% coverage right now.