mirror of
https://github.com/esphome/esphome.git
synced 2025-09-28 08:02:23 +01:00
Update dependencies (#906)
PyYAML 5.1.2 -> 5.2 https://github.com/yaml/pyyaml/blob/master/CHANGES flake8 3.6.0 -> 3.7.9 https://github.com/PyCQA/flake8/tree/master/docs/source/release-notes paho-mqtt 1.4.0 -> 1.5.0 https://github.com/eclipse/paho.mqtt.python/blob/master/ChangeLog.txt platformio 4.0.3 -> 4.1.0 https://github.com/platformio/platformio-core/releases protobuf 3.10.0 -> 3.11.1 https://github.com/protocolbuffers/protobuf/releases pylint 2.3.0 -> 2.4.4 http://pylint.pycqa.org/en/latest/whatsnew/changelog.html#what-s-new-in-pylint-2-4-4
This commit is contained in:
@@ -301,17 +301,17 @@ def setup_time_core_(time_var, config):
|
||||
for conf in config.get(CONF_ON_TIME, []):
|
||||
trigger = cg.new_Pvariable(conf[CONF_TRIGGER_ID], time_var)
|
||||
|
||||
seconds = conf.get(CONF_SECONDS, [x for x in range(0, 61)])
|
||||
seconds = conf.get(CONF_SECONDS, list(range(0, 61)))
|
||||
cg.add(trigger.add_seconds(seconds))
|
||||
minutes = conf.get(CONF_MINUTES, [x for x in range(0, 60)])
|
||||
minutes = conf.get(CONF_MINUTES, list(range(0, 60)))
|
||||
cg.add(trigger.add_minutes(minutes))
|
||||
hours = conf.get(CONF_HOURS, [x for x in range(0, 24)])
|
||||
hours = conf.get(CONF_HOURS, list(range(0, 24)))
|
||||
cg.add(trigger.add_hours(hours))
|
||||
days_of_month = conf.get(CONF_DAYS_OF_MONTH, [x for x in range(1, 32)])
|
||||
days_of_month = conf.get(CONF_DAYS_OF_MONTH, list(range(1, 32)))
|
||||
cg.add(trigger.add_days_of_month(days_of_month))
|
||||
months = conf.get(CONF_MONTHS, [x for x in range(1, 13)])
|
||||
months = conf.get(CONF_MONTHS, list(range(1, 13)))
|
||||
cg.add(trigger.add_months(months))
|
||||
days_of_week = conf.get(CONF_DAYS_OF_WEEK, [x for x in range(1, 8)])
|
||||
days_of_week = conf.get(CONF_DAYS_OF_WEEK, list(range(1, 8)))
|
||||
cg.add(trigger.add_days_of_week(days_of_week))
|
||||
|
||||
yield cg.register_component(trigger, conf)
|
||||
|
Reference in New Issue
Block a user