core/homeassistant/components/remote
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 Add support for learning new commands (#23888) 2019-06-05 11:32:59 +02:00
manifest.json Add manifests (#22699) 2019-04-03 21:14:45 -07:00
services.yaml Add support for learning new commands (#23888) 2019-06-05 11:32:59 +02:00