6354399d55688a77359c78b3d9914d001208af7e,homeassistant/components/automation/time.py,,,#,12
Before Change
CONF_AFTER = "after"
CONF_WEEKDAY = "weekday"
WEEKDAYS = ["mon", "tue", "wed", "thu", "fri", "sat", "sun"]
_LOGGER = logging.getLogger(__name__)
After Change
_LOGGER = logging.getLogger(__name__)
TRIGGER_SCHEMA = vol.All(vol.Schema({
vol.Required(CONF_PLATFORM): "time",
CONF_AFTER: cv.time,
CONF_HOURS: vol.Any(vol.Coerce(int), vol.Coerce(str)),
CONF_MINUTES: vol.Any(vol.Coerce(int), vol.Coerce(str)),
CONF_SECONDS: vol.Any(vol.Coerce(int), vol.Coerce(str)),
}), cv.has_at_least_one_key(CONF_HOURS, CONF_MINUTES,
CONF_SECONDS, CONF_AFTER))
def trigger(hass, config, action):
Listen for state changes based on configuration.
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: home-assistant/home-assistant
Commit Name: 6354399d55688a77359c78b3d9914d001208af7e
Time: 2016-04-28
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/components/automation/time.py
Class Name:
Method Name:
Project Name: home-assistant/home-assistant
Commit Name: 9d848731d903a8ee2296bbfc6746f4eb5143a446
Time: 2016-04-11
Author: jaharkes@cs.cmu.edu
File Name: homeassistant/components/sensor/nest.py
Class Name:
Method Name:
Project Name: home-assistant/home-assistant
Commit Name: ac5647a30e7e54631e371af06d88370ff90a6af7
Time: 2016-09-13
Author: mail@fabian-affolter.ch
File Name: homeassistant/components/statsd.py
Class Name:
Method Name: