Migrate components to use EntityComponent
This commit is contained in:
1 parent
a9324ba9d4
commit
bbfd97e2b8
7 files changed
+14
-14
No files matched your search
@@ -52,7 +52,7 @@ import logging
|
||||
import os
|
||||
import csv
|
||||
|
||||
from homeassistant.helpers.device_component import DeviceComponent
|
||||
from homeassistant.helpers.entity_component import EntityComponent
|
||||
|
||||
import homeassistant.util as util
|
||||
from homeassistant.const import (
|
||||
@@ -140,7 +140,7 @@ def turn_off(hass, entity_id=None, transition=None):
|
||||
def setup(hass, config):
|
||||
""" Exposes light control via statemachine and services. """
|
||||
|
||||
component = DeviceComponent(
|
||||
component = EntityComponent(
|
||||
_LOGGER, DOMAIN, hass, SCAN_INTERVAL, DISCOVERY_PLATFORMS,
|
||||
GROUP_NAME_ALL_LIGHTS)
|
||||
component.setup(config)
|
||||
|
||||
Reference in new issue
Block a user