core/tests
Mike Keesey 60a1948ab0
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
2021-01-04 13:21:14 -10:00
..
auth Drop asynctest (#44746) 2021-01-01 22:31:56 +01:00
components Generate switches for harmony activities automatically (#42331) 2021-01-04 13:21:14 -10:00
fixtures Bump PyTado to 0.10.0 (#44770) 2021-01-04 03:53:15 +01:00
hassfest Upgrade isort to 5.4.2 (#37939) 2020-08-29 08:23:55 +02:00
helpers Drop asynctest (#44746) 2021-01-01 22:31:56 +01:00
mock Drop asynctest (#44746) 2021-01-01 22:31:56 +01:00
resources
scripts Drop asynctest (#44746) 2021-01-01 22:31:56 +01:00
test_util Fix unmocked https in the test suite (#42316) 2020-10-25 07:16:23 -05:00
testing_config Fix extracting entity and device IDs from scripts (#44048) 2020-12-08 13:06:29 +01:00
util Add more debug details to running timeouts (#43644) 2021-01-04 13:10:39 +01:00
__init__.py
bandit.yaml Enable more Bandit tests (#44307) 2020-12-19 12:35:13 +01:00
common.py Drop asynctest (#44746) 2021-01-01 22:31:56 +01:00
conftest.py Drop asynctest (#44746) 2021-01-01 22:31:56 +01:00
ignore_uncaught_exceptions.py Don't try and store exceptions when the key is missing (#41803) 2020-10-16 10:01:58 +02:00
test_bootstrap.py Drop asynctest (#44746) 2021-01-01 22:31:56 +01:00
test_config.py Drop asynctest (#44746) 2021-01-01 22:31:56 +01:00
test_config_entries.py Drop asynctest (#44746) 2021-01-01 22:31:56 +01:00
test_core.py Drop asynctest (#44746) 2021-01-01 22:31:56 +01:00
test_data_entry_flow.py Add data entry flow show progress step (#42419) 2020-11-09 18:39:28 +01:00
test_loader.py Drop asynctest (#44746) 2021-01-01 22:31:56 +01:00
test_main.py Drop asynctest (#44746) 2021-01-01 22:31:56 +01:00
test_requirements.py Drop asynctest (#44746) 2021-01-01 22:31:56 +01:00
test_setup.py Drop asynctest (#44746) 2021-01-01 22:31:56 +01:00