Files
core/homeassistant/components
Felipe Martins Diel a2c1f08c8c Implement config flow in the Broadlink integration (#36914)
* Implement config flow in the Broadlink integration

* General improvements to the Broadlink config flow

* Remove unnecessary else after return

* Fix translations

* Rename device to device_entry

* Add tests for the config flow

* Improve docstrings

* Test we do not accept more than one config entry per device

* Improve helpers

* Allow empty packets

* Allow multiple config files for switches related to the same device

* Rename mock_device to mock_api

* General improvements

* Make new attempts before marking the device as unavailable

* Let the name be the template for the entity_id

* Handle OSError

* Test network unavailable in the configuration flow

* Rename lock attribute

* Update manifest.json

* Import devices from platforms

* Test import flow

* Add deprecation warnings

* General improvements

* Rename deprecate to discontinue

* Test device setup

* Add type attribute to mock api

* Test we handle an update failure at startup

* Remove BroadlinkDevice from tests

* Remove device.py from .coveragerc

* Add tests for the config flow

* Add tests for the device

* Test device registry and update listener

* Test MAC address validation

* Add tests for the device

* Extract domains and types to a helper function

* Do not patch integration details

* Add tests for the device

* Set device classes where appropriate

* Set an appropriate connection class

* Do not set device class for custom switches

* Fix tests and improve code readability

* Use RM4 to test authentication errors

* Handle BroadlinkException in the authentication
2020-08-20 17:30:41 +02:00
..
2020-08-06 00:02:06 +00:00
2020-07-09 00:05:04 +00:00
2020-06-15 00:03:32 +00:00
2020-08-14 20:04:36 -05:00
2020-08-05 00:02:19 +00:00
2020-07-14 09:27:07 +02:00
2020-07-27 00:02:58 +00:00
2020-07-09 00:05:04 +00:00
2020-08-05 00:02:19 +00:00
2020-07-27 00:02:58 +00:00
2020-08-05 00:02:19 +00:00
2020-07-27 00:02:58 +00:00
2020-08-06 00:02:06 +00:00
2020-07-20 00:03:01 +00:00
2020-07-22 00:02:30 +00:00
2020-07-27 00:02:58 +00:00
2020-08-18 23:43:38 +02:00
2020-08-04 16:51:15 +02:00
2020-08-17 11:54:56 -05:00
2020-08-17 11:54:56 -05:00
2020-08-19 14:57:38 +02:00
2020-08-05 00:02:19 +00:00
2020-07-14 10:30:30 -07:00
2020-08-05 00:02:19 +00:00
2020-06-15 00:03:32 +00:00
2020-08-05 00:02:19 +00:00
2020-08-19 11:33:04 +02:00
2020-08-05 00:02:19 +00:00
2020-08-20 11:41:05 +00:00
2020-07-14 22:17:14 +02:00
2020-07-14 22:17:14 +02:00
2020-08-11 10:31:38 +02:00
2020-08-05 00:02:19 +00:00
2020-07-27 00:02:58 +00:00
2020-08-17 11:54:56 -05:00
2020-07-14 22:17:14 +02:00
2020-07-13 17:43:11 +02:00
2020-08-05 00:02:19 +00:00
2020-07-14 22:17:14 +02:00
2020-07-27 00:02:58 +00:00
2020-07-20 00:03:01 +00:00
2020-06-09 00:05:22 +00:00
2020-07-14 22:17:14 +02:00
2020-07-14 22:17:14 +02:00
2020-07-27 00:02:58 +00:00
2020-07-13 10:20:18 -07:00
2020-08-05 00:02:19 +00:00
2020-06-15 00:03:32 +00:00
2020-07-21 17:29:57 -07:00
2020-06-08 00:02:43 +00:00
2020-08-06 00:02:06 +00:00
2020-06-27 00:05:54 +00:00
2020-08-17 11:54:56 -05:00
2020-07-20 00:03:01 +00:00
2020-08-05 00:02:19 +00:00
2020-06-07 19:47:21 +02:00
2020-08-19 11:33:04 +02:00
2020-08-14 13:27:11 +02:00
2020-06-15 00:03:32 +00:00
2020-08-05 00:02:19 +00:00
2020-07-14 22:17:14 +02:00
2020-08-05 00:02:19 +00:00
2020-08-17 11:54:56 -05:00
2020-08-17 11:54:56 -05:00
2020-06-15 00:03:32 +00:00
2020-08-05 00:02:19 +00:00
2020-08-20 10:26:49 +02:00
2020-08-05 00:02:19 +00:00
2020-08-05 00:02:19 +00:00
2020-07-27 00:02:58 +00:00
2020-07-10 00:03:39 +00:00
2020-08-17 11:54:56 -05:00
2020-06-27 00:05:54 +00:00
2020-08-13 07:46:07 -04:00
2020-08-20 10:26:49 +02:00
2020-07-20 00:03:01 +00:00
2020-07-22 00:02:30 +00:00
2020-06-27 00:05:54 +00:00
2020-07-20 00:03:01 +00:00
2020-06-12 15:54:19 -04:00
2020-07-22 00:02:30 +00:00
2020-08-06 00:02:06 +00:00
2020-08-19 11:33:04 +02:00
2020-08-06 00:02:06 +00:00
2020-08-06 00:02:06 +00:00
2020-07-25 00:04:22 +00:00
2020-08-05 00:02:19 +00:00
2020-08-06 00:02:06 +00:00
2020-08-19 11:33:04 +02:00
2020-07-21 00:03:00 +00:00
2020-06-20 14:25:02 +02:00
2020-08-19 11:33:04 +02:00
2020-06-27 00:05:54 +00:00
2020-08-12 21:41:29 -04:00
2020-07-20 00:03:01 +00:00
2020-06-15 00:03:32 +00:00
2020-08-05 00:02:19 +00:00
2020-08-17 11:54:56 -05:00
2020-08-19 11:33:04 +02:00
2020-08-02 09:13:17 -05:00
2020-07-27 08:08:01 +02:00
2020-08-14 09:07:04 -04:00
2020-08-05 00:02:19 +00:00
2020-08-05 00:02:19 +00:00
2020-07-09 00:05:04 +00:00
2020-07-27 00:02:58 +00:00
2020-06-15 00:03:32 +00:00
2020-08-05 00:02:19 +00:00
2020-08-06 00:02:06 +00:00
2020-06-26 08:15:54 -05:00
2020-08-05 00:02:19 +00:00
2020-06-27 00:05:54 +00:00
2020-08-19 23:18:54 -04:00
2020-08-18 15:23:14 +02:00
2020-08-17 11:54:56 -05:00
2020-07-27 00:02:58 +00:00
2020-07-27 15:19:10 +02:00
2020-08-19 10:36:32 -04:00
2020-08-06 00:02:06 +00:00
2020-08-19 11:33:04 +02:00
2020-08-05 00:02:19 +00:00
2020-06-29 09:39:24 -07:00
2020-06-27 00:05:54 +00:00
2020-07-11 18:02:08 +02:00
2020-06-15 00:03:32 +00:00
2020-07-09 00:05:04 +00:00
2020-08-06 00:02:06 +00:00
2020-08-05 00:02:19 +00:00
2020-06-09 00:05:22 +00:00
2020-06-15 00:03:32 +00:00
2020-08-05 00:02:19 +00:00
2020-07-13 00:02:52 +00:00
2020-08-13 12:11:58 +02:00
2020-08-17 11:54:56 -05:00
2020-07-20 00:03:01 +00:00
2020-07-20 00:03:01 +00:00
2020-08-09 00:02:21 -05:00
2020-08-17 11:54:56 -05:00
2020-08-13 21:00:55 -05:00
2020-08-05 13:41:56 +02:00
2020-08-05 00:02:19 +00:00
2020-08-05 00:02:19 +00:00
2020-07-13 17:43:11 +02:00
2020-07-15 15:51:33 +02:00
2020-06-17 13:40:04 -07:00
2020-08-05 00:02:19 +00:00
2020-08-19 14:57:38 +02:00
2020-08-17 11:54:56 -05:00
2020-07-20 00:03:01 +00:00