Add if to automation

This commit is contained in:
Paulus Schoutsen 2015-09-13 22:25:42 -07:00
parent 046c5653cb
commit 2a11d02fe4
8 changed files with 275 additions and 11 deletions

View file

@ -16,7 +16,7 @@ CONF_ABOVE = "state_above"
_LOGGER = logging.getLogger(__name__)
def register(hass, config, action):
def trigger(hass, config, action):
""" Listen for state changes based on `config`. """
entity_id = config.get(CONF_ENTITY_ID)