Refactor helper.device to helper.entity
Introduces a minor backwards compatible change: device_component function add_devices is renamed to add_entities.
This commit is contained in:
parent
c8401a3c4d
commit
d3f0210b1a
6 changed files with 297 additions and 274 deletions
|
@ -48,8 +48,8 @@ def setup(hass, config):
|
|||
|
||||
component = DeviceComponent(logger, DOMAIN, hass)
|
||||
|
||||
component.add_devices(Scene(hass, _process_config(scene_config))
|
||||
for scene_config in scene_configs)
|
||||
component.add_entities(Scene(hass, _process_config(scene_config))
|
||||
for scene_config in scene_configs)
|
||||
|
||||
def handle_scene_service(service):
|
||||
""" Handles calls to the switch services. """
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue