core/homeassistant
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
..
auth
components Prevent tplink missing devices and unavailable state (#39762) 2020-10-11 21:10:36 +02:00
generated Add Ruckus Unleashed integration (#40002) 2020-10-10 13:01:53 +02:00
helpers Allow custom_serializer to recognize cv.string and cv.boolean to make config schema more reusable (#41532) 2020-10-09 09:36:54 +02:00
scripts
util Fix string parameter processing in parse_time_expression (#41468) (#41469) 2020-10-09 11:48:49 +02:00
__init__.py
__main__.py
block_async_io.py
bootstrap.py
config.py Add native Python types support to templates (#41227) 2020-10-07 00:05:52 +02:00
config_entries.py Make async_step_discovery default for MQTT config flows (#41414) 2020-10-07 23:49:29 +02:00
const.py Warn when using Python 3.7 (#41400) 2020-10-07 16:44:13 +02:00
core.py Determine how to run listeners at setup time instead of execution time (#41304) 2020-10-07 16:51:50 +02:00
data_entry_flow.py
exceptions.py
loader.py Add MQTT integration discovery (#41332) 2020-10-07 18:30:51 +02:00
package_constraints.txt Update frontend to 20201001.2 (#41491) 2020-10-08 16:00:34 +02:00
requirements.py Add MQTT integration discovery (#41332) 2020-10-07 18:30:51 +02:00
runner.py
setup.py Use dict syntax (#41325) 2020-10-06 15:02:23 +02:00
strings.json Add invalid_host to base strings for config flows (#41381) 2020-10-07 11:24:31 +02:00