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:
Paulus Schoutsen 2015-03-21 18:49:30 -07:00
parent c8401a3c4d
commit d3f0210b1a
6 changed files with 297 additions and 274 deletions

View file

@ -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. """