Add config entry and device support to Demo (#28702)
* Add config entry and device support to Demo * Some more devices * Fix tests using demo * Review comments * Update config_flow.py * Revert * Disable pylint
This commit is contained in:
parent
15ce738357
commit
15e6278a2e
21 changed files with 305 additions and 54 deletions
|
@ -3,6 +3,11 @@ from homeassistant.components.remote import RemoteDevice
|
|||
from homeassistant.const import DEVICE_DEFAULT_NAME
|
||||
|
||||
|
||||
async def async_setup_entry(hass, config_entry, async_add_entities):
|
||||
"""Set up the Demo config entry."""
|
||||
setup_platform(hass, {}, async_add_entities)
|
||||
|
||||
|
||||
def setup_platform(hass, config, add_entities_callback, discovery_info=None):
|
||||
"""Set up the demo remotes."""
|
||||
add_entities_callback(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue