Migrate components to use EntityComponent

This commit is contained in:
Paulus Schoutsen committed 2015-03-21 19:37:18 -07:00
1 parent a9324ba9d4
commit bbfd97e2b8
7 files changed
+14 -14

No files matched your search

+2 -2
View File
@@ -5,7 +5,7 @@ Component to interface with various sensors that can be monitored.
"""
import logging
from homeassistant.helpers.device_component import DeviceComponent
from homeassistant.helpers.entity_component import EntityComponent
from homeassistant.components import wink, zwave
DOMAIN = 'sensor'
@@ -23,7 +23,7 @@ DISCOVERY_PLATFORMS = {
def setup(hass, config):
""" Track states and offer events for sensors. """
component = DeviceComponent(
component = EntityComponent(
logging.getLogger(__name__), DOMAIN, hass, SCAN_INTERVAL,
DISCOVERY_PLATFORMS)