hass-core/tests/components/switch
Erik Montnemery 0c12914548
Add config flow for switch.light (#67447)
* Add config flow for switch.light

* Refactor according to code review

* Setup light switch from config entry

* Improve async_resolve_entity

* Prepare for multiple steps

* Remove name and options flow from switch light

* Check type before adding description to schema keys

* Remove options flow enabler

* Copy name from the switch

* Move helper flows to new file

* Improve test coverage

* Fix name

* Remove dead code from abstract method

* Remove manifest 'helper' option

* Validate registry entry id before forwarding to light platform

* Improve test

* Add translations

* Improve config entry setup

* Log when config entry fails setup

* Update homeassistant/components/switch/__init__.py

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-03-04 20:02:17 +01:00
..
__init__.py
common.py
conftest.py Lint suppression cleanups (#47248) 2021-03-02 09:02:04 +01:00
test_config_flow.py Add config flow for switch.light (#67447) 2022-03-04 20:02:17 +01:00
test_device_action.py Use DeviceAutomationType in tests/components/[s-z]* (#62450) 2021-12-21 11:56:00 +01:00
test_device_condition.py Use DeviceAutomationType in tests/components/[s-z]* (#62450) 2021-12-21 11:56:00 +01:00
test_device_trigger.py Change value of device_automation constant (#64296) 2022-01-17 16:34:40 +01:00
test_init.py Remove deprecated base entity classes (#61006) 2021-12-05 13:53:52 +01:00
test_light.py Add config flow for switch.light (#67447) 2022-03-04 20:02:17 +01:00
test_reproduce_state.py
test_significant_change.py