-
- Downloads
Generate switches for harmony activities automatically (#42331)
* Adding switch code for harmony activities * Working on-off * Removing poll code for now * Async updates for current activity * Update our state based on events * Notifications we got connected or disconnected * Remove unncessary constructor arg * Initial switch tests * Additional tests for switch transitions * Test transitions for availability * Testing switch state changes * Tests passing * Final tests * Updating manifest. * Correctly mock the return value from a call to the library * Adding new subscriber classes * Update class name and location * Got the refactor working locally. * Tests passing * Tracking state changes * Remove write_to_config_file - this appears to never be read. It was added far back in the past to account for a harmony library change, but nothing ever reads that path. Removing that side effect from tests is a pain - avoid the side effect completely. * Connection changes tested * Clean up temporary code * Update .coveragerc for harmony component Specifically exclude untested files instead of the whole module * Fix linting * test sending activity change commands by id * Improving coverage * Testing channel change commands * Splitting subscriber logic into it's own class * Improve coverage and tighten up .coveragerc * Test cleanups. * re-add config file writing for harmony remote * Create fixture for the mock harmonyclient * Reduce duplication in subscription callbacks * use async_run_job to call callbacks * Adding some tests for async behaviors with subscribers. * async_call_later for delay in marking remote unavailable * Test disconnection handling in harmony remote * Early exit if activity not specified * Use connection state mixin * Lint fix after rebase * Fix isort * super init for ConnectionStateMixin * Adding @mkeesey to harmony CODEOWNERS
Showing
- .coveragerc 4 additions, 1 deletion.coveragerc
- CODEOWNERS 1 addition, 1 deletionCODEOWNERS
- homeassistant/components/harmony/__init__.py 7 additions, 17 deletionshomeassistant/components/harmony/__init__.py
- homeassistant/components/harmony/connection_state.py 44 additions, 0 deletionshomeassistant/components/harmony/connection_state.py
- homeassistant/components/harmony/const.py 1 addition, 1 deletionhomeassistant/components/harmony/const.py
- homeassistant/components/harmony/data.py 251 additions, 0 deletionshomeassistant/components/harmony/data.py
- homeassistant/components/harmony/manifest.json 2 additions, 1 deletionhomeassistant/components/harmony/manifest.json
- homeassistant/components/harmony/remote.py 45 additions, 198 deletionshomeassistant/components/harmony/remote.py
- homeassistant/components/harmony/subscriber.py 77 additions, 0 deletionshomeassistant/components/harmony/subscriber.py
- homeassistant/components/harmony/switch.py 87 additions, 0 deletionshomeassistant/components/harmony/switch.py
- tests/components/harmony/conftest.py 147 additions, 0 deletionstests/components/harmony/conftest.py
- tests/components/harmony/const.py 6 additions, 0 deletionstests/components/harmony/const.py
- tests/components/harmony/test_activity_changes.py 137 additions, 0 deletionstests/components/harmony/test_activity_changes.py
- tests/components/harmony/test_commands.py 263 additions, 0 deletionstests/components/harmony/test_commands.py
- tests/components/harmony/test_config_flow.py 9 additions, 33 deletionstests/components/harmony/test_config_flow.py
- tests/components/harmony/test_connection_changes.py 67 additions, 0 deletionstests/components/harmony/test_connection_changes.py
- tests/components/harmony/test_subscriber.py 143 additions, 0 deletionstests/components/harmony/test_subscriber.py
Loading
Please register or sign in to comment