core/tests/components
Angelo Gagliano 874e1f6103
Prevent tplink missing devices and unavailable state (#39762)
* Adds self to codeowners for tplink

* Adds retry to update to prevent missing devices

* Runs through isort and corrects async commit

* Runs through black

* Runs through pre-checks

* Corrects and matches var names

* Re-runs through black

* Corrects var name

* Removes the retry loop and in favor of async add

* Cleanup imports

* Removes no longer valid test

* Removes is_ready and only log retry once

* Corrects switch logging vars

* Adds list of entities to add_entities

* Consumes exception for attempt_update

* Consumes specific exception

* Removes unnecessary update

* Reducing back to 2 seconds

* Removes useless return

* Call get_sysinfo for all at once

* Formated black

* Adds missing docstirng

* Corrects docstring

* Update homeassistant/components/tplink/light.py

Co-authored-by: Anders Melchiorsen <amelchio@nogoto.net>

* Corrects sysinfo call

* Adds default for host vars

* Adds log when device responds again

* Revert host alias default

* Removes unncessary host var

* Removes host var

* Get device details from sysinfo

* Use host and alias for log msg

* Gets hosts from smartbulb

* Changes retry logging to debug

* Attempts coverage add

* Removes unused import

* Updates tests for new retry

* Runs through isort

* Removes unneeded try

* Prevents static entries from failing integration

* Format black

* Forces an update after turn on off

* Remove common test

* Revert update after turn_on off

* Adds patch for sleep_time 0

* Returns False when update fails

Co-authored-by: Anders Melchiorsen <amelchio@nogoto.net>
2020-10-11 21:10:36 +02:00
..
2020-07-13 17:43:11 +02:00
2020-06-08 12:26:40 -07:00
2020-10-06 18:50:32 +02:00
2020-08-27 13:56:20 +02:00
2020-08-27 13:56:20 +02:00
2020-08-27 13:56:20 +02:00
2020-08-27 13:56:20 +02:00
2020-06-08 12:26:40 -07:00
2020-08-27 13:56:20 +02:00
2020-06-08 12:26:40 -07:00
2020-08-27 13:56:20 +02:00
2020-08-27 13:56:20 +02:00
2020-08-27 13:56:20 +02:00
2020-08-27 13:56:20 +02:00
2020-10-04 14:27:22 +02:00
2020-08-27 13:56:20 +02:00
2020-09-15 22:38:45 +02:00
2020-08-27 13:56:20 +02:00
2020-08-27 13:56:20 +02:00
2020-08-27 13:56:20 +02:00
2020-06-08 12:26:40 -07:00
2020-06-08 12:26:40 -07:00
2020-07-22 20:21:32 -10:00
2020-06-08 12:26:40 -07:00
2020-08-27 13:56:20 +02:00
2020-08-27 13:56:20 +02:00
2020-07-13 17:43:11 +02:00
2020-08-27 13:56:20 +02:00
2020-08-28 15:33:08 +00:00
2020-10-01 16:15:24 +02:00
2020-08-27 13:56:20 +02:00
2020-08-27 13:56:20 +02:00
2020-06-08 12:26:40 -07:00
2020-08-27 13:56:20 +02:00
2020-08-27 13:56:20 +02:00
2020-10-04 15:24:07 +02:00
2020-10-11 21:01:49 +02:00
2020-08-19 11:33:04 +02:00
2020-08-27 13:56:20 +02:00
2020-08-27 13:56:20 +02:00
2020-08-27 13:56:20 +02:00
2020-06-08 12:26:40 -07:00
2020-08-17 11:54:56 -05:00
2020-08-27 13:56:20 +02:00
2020-08-27 13:56:20 +02:00
2020-08-27 13:56:20 +02:00
2020-08-27 13:56:20 +02:00
2020-10-03 15:18:05 +02:00
2020-08-27 13:56:20 +02:00
2020-07-13 17:43:11 +02:00
2020-06-08 12:26:40 -07:00
2020-08-27 13:56:20 +02:00
2020-08-27 13:56:20 +02:00
2020-08-27 13:56:20 +02:00
2020-04-30 14:23:30 +02:00
2020-08-27 13:56:20 +02:00
2020-08-19 11:33:04 +02:00
2020-08-27 13:56:20 +02:00
2020-08-27 13:56:20 +02:00
2020-08-27 13:56:20 +02:00
2020-08-27 13:56:20 +02:00
2020-06-08 12:26:40 -07:00
2020-08-27 13:56:20 +02:00
2020-09-04 15:13:11 -05:00
2020-06-08 12:26:40 -07:00
2020-08-27 13:56:20 +02:00
2020-08-27 13:56:20 +02:00
2020-08-27 13:56:20 +02:00
2020-08-27 13:56:20 +02:00
2020-08-27 13:56:20 +02:00
2020-09-03 12:22:00 -04:00
2020-04-09 00:57:47 +02:00
2020-08-27 13:56:20 +02:00
2020-08-27 13:56:20 +02:00
2020-08-27 13:56:20 +02:00
2020-06-29 09:39:24 -07:00
2020-08-27 13:56:20 +02:00
2020-08-27 13:56:20 +02:00
2020-08-27 13:56:20 +02:00
2020-08-27 13:56:20 +02:00
2020-10-06 19:57:38 +02:00
2020-06-08 12:26:40 -07:00
2020-06-08 12:26:40 -07:00
2020-08-27 13:56:20 +02:00
2020-06-08 12:26:40 -07:00
2020-08-27 13:56:20 +02:00
2020-08-27 13:56:20 +02:00
2020-08-27 13:56:20 +02:00
2020-06-08 12:26:40 -07:00
2020-09-02 18:42:12 +02:00
2020-08-27 13:56:20 +02:00
2020-09-21 10:41:30 -05:00
2020-08-27 13:56:20 +02:00