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 committed 2015-03-21 18:49:30 -07:00
1 parent c8401a3c4d
commit d3f0210b1a
6 files changed
+297 -274

No files matched your search

+2 -2
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. """