core/tests
Teemu R 94be43e3e1 Add support for automatic discovery of TP-Link switches, bulbs and dimmers (#18091)
* {switch,light}.tplink: use deviceid as unique id, fetch name from the device during initialization

* raise PlatformNotReady when no device is available

* Use mac instead of deviceid

* remove name option as obsolete

* Add support for configuration flow / integration

Allows activating automatic discovery of supported devices from the configuration

* Fix linting, update requirements_all.txt

* start cleaning up tplink component based on feedback

* add device info, improve config handling

* Allow overriding detected devices via configuration file

* Update requirements.txt

* Remove debug logging

* make hound happy

* Avoid I/O during init and simplify the code, remove remains of leds_on

* Fix issues based on feedback, use consistent quotation marks for device info

* add async_setup_platform emiting a deprecation warning

* Avoid blocking the I/O, check for None on features

* handle some Martin's comments, schema-validation is still missing

* use async_create_task instead of async_add_job, let core validate the schema

* simplify configuration handling by storing the configuration data separately from initialized instances

* add default values to schema, make hound happy

* with defaults set by schema, simplify the checks. add async_unload_entry

* Use constant for data structure access

* REWORD add a short note about async_unload_entry

* handle feedback from Martin, config_data is checked against Noneness

* use pop to remove the domain on unload

* First steps to add tests for the new tplink component

* embed platforms under the component directory

* Fix tests by mocking the pyhs100 internals

* Fix linting

* Test against multiple instances of devices, tidy up

* (hopefully) final linting round

* Add pyHS100 to test requirements

* log always the warnings occured during an update to make them easy to see

* revert back the warning behavior (requirement for silver level in IQS)

* Unload only when an entry is being loaded and add tests for that

Thanks @MartinHjelmare for pointing this out!

* Fix linting

* Bump the upstream lib, fixes most prominently the HSV setting on bulbs

* Test unloading for all platforms, clear the data storage instead of popping it out, making it possible to reconfigure after removal without restarting hass first

* Use class variables instead of instance variables for bulb states, required for HS220

* Use new-style format string

* Fix indenting, uppercase the mock constant

* Run black on test_init, hopefully that will finally fix the weird formatting (pycharm, pylint and hound seems to have different opinions...)
2019-02-21 20:29:07 +01:00
..
auth Added command_line auth provider that validates credentials by calling a command (#19985) 2019-02-06 16:36:41 -08:00
components Add support for automatic discovery of TP-Link switches, bulbs and dimmers (#18091) 2019-02-21 20:29:07 +01:00
fixtures Make Ambient PWS async and cloud-push (#20332) 2019-01-28 15:35:39 -08:00
helpers Deprecate conf_update_interval (#20924) 2019-02-17 06:23:09 +01:00
mock Add zwave.network_complete_some_dead event (#16894) 2018-09-28 19:14:57 +02:00
resources
scripts Mqtt light refactor (#18227) 2018-11-27 14:00:05 +01:00
test_util Add Hass.io user headers to supervisor proxy 2019-01-11 10:00:38 -08:00
testing_config Prevent partial custom component overlays (#21070) 2019-02-21 09:41:36 +01:00
util Load as many components in parallel as possible (#20806) 2019-02-07 22:56:40 +01:00
__init__.py
common.py Prevent partial custom component overlays (#21070) 2019-02-21 09:41:36 +01:00
conftest.py Embed Z-Wave platforms (#20810) 2019-02-07 22:50:59 +01:00
test_bootstrap.py Remove usage of "run_until_complete" (#16617) 2018-09-19 15:40:02 +02:00
test_config.py Extend partial reload to include packages (#18884) 2018-12-03 10:56:26 +01:00
test_config_entries.py Config Entry migrations (#20888) 2019-02-15 09:30:47 -08:00
test_core.py Prevent invalid context from crashing (#21231) 2019-02-20 08:02:56 +01:00
test_data_entry_flow.py Allow finish_flow callback to change data entry result type (#16100) 2018-08-21 10:48:24 -07:00
test_loader.py Prevent partial custom component overlays (#21070) 2019-02-21 09:41:36 +01:00
test_main.py Hello Python 3.5 (#12610) 2018-02-22 23:22:27 -08:00
test_requirements.py Improve package loadable (#16237) 2018-08-28 12:52:18 +02:00
test_setup.py Lint 2019-02-15 10:57:02 +01:00