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
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user