🏡 Open source home automation that puts local control and privacy first.
Go to file
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
.devcontainer
.github Make PR search link not show changes requested PRs (#41278) 2020-10-07 15:30:08 +02:00
.vscode Constraints pt3 (#37803) 2020-07-13 15:55:20 +02:00
docs Use core GitHub URL in all files (#41089) 2020-10-03 00:04:11 +02:00
homeassistant Prevent tplink missing devices and unavailable state (#39762) 2020-10-11 21:10:36 +02:00
rootfs
script Update translate develop to substitute references (#41445) 2020-10-09 11:51:05 +02:00
tests Prevent tplink missing devices and unavailable state (#39762) 2020-10-11 21:10:36 +02:00
.coveragerc Prevent tplink missing devices and unavailable state (#39762) 2020-10-11 21:10:36 +02:00
.dockerignore
.gitattributes highlight Dockerfile.dev as Dockerfile in github ui (#36933) 2020-06-22 14:45:57 +02:00
.gitignore
.hadolint.yaml
.ignore
.pre-commit-config.yaml Upgrade flake8 to 3.8.4 (#41117) 2020-10-03 10:11:22 +02:00
.prettierignore
.readthedocs.yml
.travis.yml Upgrade pylint to 2.6.0 (#39363) 2020-08-29 07:59:24 +02:00
.yamllint
CLA.md
CODEOWNERS Prevent tplink missing devices and unavailable state (#39762) 2020-10-11 21:10:36 +02:00
CODE_OF_CONDUCT.md
CONTRIBUTING.md Use core GitHub URL in contributing guidelines (#41083) 2020-10-02 20:42:33 +02:00
Dockerfile Block typing from being installed (#37707) 2020-08-26 14:51:41 +02:00
Dockerfile.dev Fix Dockerfile.dev for VS Code devcontainer (#37801) 2020-07-12 16:18:08 -07:00
LICENSE.md
MANIFEST.in
README.rst
azure-pipelines-ci.yml Block typing from being installed (#37707) 2020-08-26 14:51:41 +02:00
azure-pipelines-release.yml
azure-pipelines-translation.yml
azure-pipelines-wheels.yml Update azure-pipelines-wheels.yml 2020-09-13 15:38:02 +02:00
build.json Update docker base image to 8.4.0 (#40066) 2020-09-14 14:50:39 +02:00
codecov.yml
pyproject.toml Move isort, pylint, and pytest configs to pyproject.toml (#40335) 2020-10-06 11:26:48 +02:00
requirements.txt Update voluptuous to 0.12.0 (#40401) 2020-09-21 10:43:35 -05:00
requirements_all.txt Bump brother to 0.1.18 (#41056) 2020-10-11 11:04:27 -05:00
requirements_docs.txt
requirements_test.txt Upgrade codecov to 2.1.10 (#41562) 2020-10-09 18:27:26 +02:00
requirements_test_all.txt Bump brother to 0.1.18 (#41056) 2020-10-11 11:04:27 -05:00
requirements_test_pre_commit.txt Upgrade flake8 to 3.8.4 (#41117) 2020-10-03 10:11:22 +02:00
setup.cfg Remove redundant flake8 max-line-length (#41596) 2020-10-10 13:43:37 +02:00
setup.py Update voluptuous to 0.12.0 (#40401) 2020-09-21 10:43:35 -05:00
tox.ini Fix and clean tox.ini (#40789) 2020-09-30 17:07:59 +02:00

README.rst

Home Assistant |Chat Status|
=================================================================================

Open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server.

Check out `home-assistant.io <https://home-assistant.io>`__ for `a
demo <https://home-assistant.io/demo/>`__, `installation instructions <https://home-assistant.io/getting-started/>`__,
`tutorials <https://home-assistant.io/getting-started/automation-2/>`__ and `documentation <https://home-assistant.io/docs/>`__.

|screenshot-states|

Featured integrations
---------------------

|screenshot-components|

The system is built using a modular approach so support for other devices or actions can be implemented easily. See also the `section on architecture <https://developers.home-assistant.io/docs/en/architecture_index.html>`__ and the `section on creating your own
components <https://developers.home-assistant.io/docs/en/creating_component_index.html>`__.

If you run into issues while using Home Assistant or during development
of a component, check the `Home Assistant help section <https://home-assistant.io/help/>`__ of our website for further help and information.

.. |Chat Status| image:: https://img.shields.io/discord/330944238910963714.svg
   :target: https://discord.gg/c5DvZ4e
.. |screenshot-states| image:: https://raw.github.com/home-assistant/home-assistant/master/docs/screenshots.png
   :target: https://home-assistant.io/demo/
.. |screenshot-components| image:: https://raw.github.com/home-assistant/home-assistant/dev/docs/screenshot-components.png
   :target: https://home-assistant.io/integrations/