HomeAssistantAPI
HomeAssistantAPI copied to clipboard
Add Websocket "config entries" methods
Add most of the Websocket methods available in the config_entries.py file.
Missing from this PR so far:
- ~Add testing for the newly added methods~
- ~Add
config_entries/subscribemethod~ - Ensure that
get_entry_subentriesanddelete_entry_subentrywork as intended
This PR also tweaks how the from_json() methods are used, so some feedback would be appreciated.
Kind regards
I've added the missing method and testing for the new code.
Codecov Report
:x: Patch coverage is 99.57806% with 1 line in your changes missing coverage. Please review.
:white_check_mark: Project coverage is 97.63%. Comparing base (e3ea524) to head (c8ec47f).
:warning: Report is 4 commits behind head on dev.
| Files with missing lines | Patch % | Lines |
|---|---|---|
| homeassistant_api/models/events.py | 87.50% | 1 Missing :warning: |
Additional details and impacted files
@@ Coverage Diff @@
## dev #213 +/- ##
==========================================
+ Coverage 97.44% 97.63% +0.18%
==========================================
Files 25 26 +1
Lines 1647 1864 +217
==========================================
+ Hits 1605 1820 +215
- Misses 42 44 +2
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
:rocket: New features to boost your workflow:
- :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.