Files
core/tests/components
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
..
2022-01-19 21:06:26 +01:00
2021-11-01 20:47:05 -07:00
2021-11-01 20:47:05 -07:00
2022-01-17 19:22:11 -08:00
2021-08-17 17:29:20 +02:00
2022-01-17 15:26:21 +01:00
2022-01-20 22:23:08 +02:00
2021-11-01 20:47:05 -07:00
2022-01-26 10:34:33 +01:00
2021-11-01 20:47:05 -07:00
2021-11-01 20:47:05 -07:00
2021-01-01 22:31:56 +01:00
2021-01-01 22:31:56 +01:00
2021-01-01 22:31:56 +01:00
2021-01-01 22:31:56 +01:00
2021-11-01 20:47:05 -07:00
2021-09-13 18:18:21 +02:00
2021-12-27 19:50:43 +01:00
2021-11-01 20:47:05 -07:00
2021-11-29 20:00:39 -05:00
2022-01-05 15:34:33 +01:00
2021-01-01 22:31:56 +01:00
2021-11-01 20:47:05 -07:00
2021-12-12 14:09:45 -08:00
2021-01-01 22:31:56 +01:00
2021-01-01 22:31:56 +01:00
2021-01-01 22:31:56 +01:00
2021-01-01 22:31:56 +01:00
2021-12-20 16:18:58 +01:00
2022-01-05 15:34:33 +01:00
2021-12-15 23:25:40 +02:00
2022-01-20 22:09:36 -08:00
2021-01-01 22:31:56 +01:00
2021-01-01 22:31:56 +01:00
2021-11-01 20:47:05 -07:00
2021-12-15 23:25:40 +02:00
2022-01-05 15:34:33 +01:00
2021-11-01 20:47:05 -07:00
2021-01-01 22:31:56 +01:00
2021-01-01 22:31:56 +01:00
2021-02-28 14:16:37 +01:00
2021-01-01 22:31:56 +01:00
2021-02-08 14:44:46 +01:00
2021-11-01 20:47:05 -07:00
2021-01-01 22:31:56 +01:00
2022-01-23 00:17:32 -08:00
2021-01-01 22:31:56 +01:00
2022-01-18 11:02:43 -08:00
2022-01-11 21:28:13 +01:00
2021-01-01 22:31:56 +01:00
2022-01-22 16:38:38 -08:00
2021-12-22 09:16:37 +01:00
2021-01-01 22:31:56 +01:00
2022-01-11 21:28:13 +01:00
2021-11-01 20:47:05 -07:00
2021-01-01 22:31:56 +01:00
2021-11-01 20:47:05 -07:00
2021-01-01 22:31:56 +01:00
2021-01-01 22:31:56 +01:00
2021-01-01 22:31:56 +01:00
2021-01-01 22:31:56 +01:00
2021-01-01 22:31:56 +01:00
2022-01-05 15:34:33 +01:00
2021-01-01 22:31:56 +01:00
2021-01-01 22:31:56 +01:00
2021-10-14 10:03:38 -07:00
2022-01-14 16:35:35 +01:00
2021-11-01 20:47:05 -07:00
2022-01-26 10:58:06 +01:00
2021-01-01 22:31:56 +01:00
2021-01-01 22:31:56 +01:00
2021-11-01 20:47:05 -07:00
2022-01-20 15:03:14 +01:00
2022-01-25 20:20:11 -10:00
2021-01-01 22:31:56 +01:00
2022-01-11 21:28:13 +01:00
2021-11-18 15:56:22 -08:00
2021-06-11 13:35:03 +02:00
2021-01-01 22:31:56 +01:00
2022-01-14 22:07:15 +01:00
2021-01-01 22:31:56 +01:00
2022-01-21 11:20:43 -08:00
2021-03-19 15:54:07 +01:00
2021-12-31 09:44:35 -10:00
2022-01-24 13:36:07 +01:00
2021-01-01 22:31:56 +01:00
2022-01-13 15:32:39 +01:00
2021-01-01 22:31:56 +01:00