Moved service decorator to service helpers

Moved the service decorator to the service helpers module and moved the
associated tests.
This commit is contained in:
Ryan Kraus
2016-01-24 22:46:30 -05:00
parent f66aeb2e73
commit 5830da63b1
5 changed files with 40 additions and 17 deletions

View File

@@ -31,7 +31,8 @@ import logging
from homeassistant.const import STATE_HOME, STATE_NOT_HOME, STATE_ON, STATE_OFF
from homeassistant.helpers import validate_config
from homeassistant.helpers.event_decorators import \
track_state_change, track_time_change, service
track_state_change, track_time_change
from homeassistant.helpers.service import service
import homeassistant.components as core
from homeassistant.components import device_tracker
from homeassistant.components import light