hass-core/tests
Patrik Lindgren 9d404b749a
Implement coordinator class for Tradfri integration (#64166)
* Initial commit coordinator

* More coordinator implementation

* More coordinator implementation

* Allow integration reload

* Move API calls to try/catch block

* Move back fixture

* Remove coordinator test file

* Ensure unchanged file

* Ensure unchanged conftest.py file

* Remove coordinator key check

* Apply suggestions from code review

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Import RequestError

* Move async_setup_platforms to end of setup_entry

* Remove centralised handling of device data and device controllers

* Remove platform_type argument

* Remove exception

* Remove the correct exception

* Refactor coordinator error handling

* Apply suggestions from code review

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Remove platform type from base class

* Remove timeout context manager

* Refactor exception callback

* Simplify starting device observation

* Update test

* Move observe start into update method

* Remove await self.coordinator.async_request_refresh()

* Refactor cover.py

* Uncomment const.py

* Add back extra_state_attributes

* Update homeassistant/components/tradfri/coordinator.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Refactor switch platform

* Expose switch state

* Refactor sensor platform

* Put back accidentally deleted code

* Add set_hub_available

* Apply suggestions from code review

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Fix tests for fan platform

* Update homeassistant/components/tradfri/base_class.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Update homeassistant/components/tradfri/base_class.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Fix non-working tests

* Refresh sensor state

* Remove commented line

* Add group coordinator

* Add groups during setup

* Refactor light platform

* Fix tests

* Move outside of try...except

* Remove error handler

* Remove unneeded methods

* Update sensor

* Update .coveragerc

* Move signal

* Add signals for groups

* Fix signal

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-01-27 11:12:52 +01:00
..
auth
backports Move StrEnum to homeassistant.backports and move Platform to homeassistant.const (#60880) 2021-12-03 09:31:17 +01:00
components Implement coordinator class for Tradfri integration (#64166) 2022-01-27 11:12:52 +01:00
fixtures Clean up Ambient PWS tests (#64486) 2022-01-19 17:03:53 -07:00
hassfest
helpers Abort webhook flow when not connected to home assistant cloud (#64963) 2022-01-26 10:57:45 -08:00
mock
pylint Adjust pylint plugin to enforce device_tracker type hints (#64903) 2022-01-25 18:21:59 +01:00
resources
scripts
test_util
testing_config Make device tracker entities work better (#63328) 2022-01-04 23:16:43 -08:00
util Add support for converting to and from mmHg (#64844) 2022-01-24 22:57:56 +01:00
__init__.py
bandit.yaml
common.py Update typing - collections.abc (3) (#63947) 2022-01-12 08:04:17 +01:00
conftest.py Add Home Assistant Content user (#64337) 2022-01-21 10:06:39 -08:00
ignore_uncaught_exceptions.py
test_bootstrap.py Import persistent notification part 1 (#63898) 2022-01-11 17:24:59 +01:00
test_config.py Remove groups.yaml from default config (#63366) 2022-01-04 23:16:08 -08:00
test_config_entries.py Automatically add entry title as name placeholder in reauth (#64078) 2022-01-18 14:18:16 -08:00
test_core.py Make core config source an enum (#61966) 2021-12-19 18:02:52 +01:00
test_data_entry_flow.py
test_exceptions.py
test_loader.py Catch all exceptions on import component/platform (#64930) 2022-01-25 20:39:32 -08:00
test_main.py
test_requirements.py
test_runner.py
test_setup.py Catch all exceptions on import component/platform (#64930) 2022-01-25 20:39:32 -08:00
test_test_fixtures.py