hass-core/tests/components/demo
Felipe Martins Diel 0ed9e185b2 Add support for learning new commands (#23888)
* Add support for learning new commands

This update creates a generic service in the 'remote' component to enable remote control platforms to learn new commands.

* Update __init__.py with the proposed changes

- Add 'supported_features' property and a constant related to the 'learn_command' functionality.
- Redefine 'async_learn_command' function as a coroutine.

* Update __init__.py

* Fix assertion error

Adding the 'supported_features' attribute generated an assertion error on the 'Demo Remote' platform. This update fixes this.

* Fix duplicated 'hass' object

This update fixes a typo that occurred at the last update.
2019-06-05 11:32:59 +02:00
..
__init__.py Move components to folders (#20774) 2019-02-05 19:31:15 -08:00
test_calendar.py Consolidate more platforms (#22308) 2019-03-23 20:22:35 -07:00
test_camera.py Consolidate more platforms (#22308) 2019-03-23 20:22:35 -07:00
test_climate.py Consolidate more platforms (#22308) 2019-03-23 20:22:35 -07:00
test_cover.py Consolidate more platforms (#22308) 2019-03-23 20:22:35 -07:00
test_fan.py Convert some test helpers to coroutines and adjust tests (#23352) 2019-04-25 10:14:16 +02:00
test_geo_location.py Fix demo (#23087) 2019-04-14 16:59:06 -07:00
test_init.py Restructure device tracker (#23862) 2019-05-15 23:43:45 +02:00
test_light.py Convert some test helpers to coroutines and adjust tests (#23352) 2019-04-25 10:14:16 +02:00
test_lock.py Consolidate more platforms (#22308) 2019-03-23 20:22:35 -07:00
test_media_player.py Check for supported features in media_player services (#22878) 2019-04-10 09:44:58 -07:00
test_notify.py Fix demo (#23087) 2019-04-14 16:59:06 -07:00
test_remote.py Add support for learning new commands (#23888) 2019-06-05 11:32:59 +02:00
test_vacuum.py Consolidate more platforms (#22308) 2019-03-23 20:22:35 -07:00
test_water_heater.py Consolidate more platforms (#22308) 2019-03-23 20:22:35 -07:00