Closed potman69 closed 5 years ago
I have a similar problem with 1.13.5. Timezone: Europe/Saratov.
INFO Reading configuration...
ERROR Unexpected exception while reading configuration:
Traceback (most recent call last):
File ".venv/bin/esphome", line 10, in <module>
sys.exit(main())
File "/home/username/Development/fw-lroom-aquarium/.venv/lib/python2.7/site-packages/esphome/__main__.py", line 483, in main
return run_esphome(sys.argv)
File "/home/username/Development/fw-lroom-aquarium/.venv/lib/python2.7/site-packages/esphome/__main__.py", line 466, in run_esphome
config = read_config(args.verbose)
File "/home/username/Development/fw-lroom-aquarium/.venv/lib/python2.7/site-packages/esphome/config.py", line 803, in read_config
res = load_config()
File "/home/username/Development/fw-lroom-aquarium/.venv/lib/python2.7/site-packages/esphome/config.py", line 663, in load_config
return _load_config()
File "/home/username/Development/fw-lroom-aquarium/.venv/lib/python2.7/site-packages/esphome/config.py", line 651, in _load_config
result = validate_config(config)
File "/home/username/Development/fw-lroom-aquarium/.venv/lib/python2.7/site-packages/esphome/config.py", line 561, in validate_config
validated = comp.config_schema(input_conf)
File "/home/username/Development/fw-lroom-aquarium/.venv/lib/python2.7/site-packages/esphome/voluptuous_schema.py", line 32, in __call__
res = super(_Schema, self).__call__(data)
File "/home/username/Development/fw-lroom-aquarium/.venv/lib/python2.7/site-packages/voluptuous/schema_builder.py", line 267, in __call__
return self._compiled([], data)
File "/home/username/Development/fw-lroom-aquarium/.venv/lib/python2.7/site-packages/voluptuous/schema_builder.py", line 589, in validate_dict
return base_validate(path, iteritems(data), out)
File "/home/username/Development/fw-lroom-aquarium/.venv/lib/python2.7/site-packages/esphome/voluptuous_schema.py", line 106, in validate_mapping
key_value_map[key.schema] = key.default()
File "/home/username/Development/fw-lroom-aquarium/.venv/lib/python2.7/site-packages/esphome/components/time/__init__.py", line 112, in detect_tz
return convert_tz(tz)
File "/home/username/Development/fw-lroom-aquarium/.venv/lib/python2.7/site-packages/esphome/components/time/__init__.py", line 87, in convert_tz
utcoffset_on, _, tzname_on = transition_info[idx1]
IndexError: list index out of range
@definitio Hmm that must be an issue with pytz - their transition_info table contains an entry for 2038 (which means the timezone would change on 19th jan 2038 after the most recent timezone change in 2016); but looking through the internet it doesn't look like such a timezone change is scheduled (nor would it make sense to schedule a tz change 18 years in advance).
Will try to create a workaround.
ahhh yes, this branch fixes Argentina time zone too
Operating environment/Installation (Hass.io/Docker/pip/etc.): vitual image
Please provide details about your environment below this line. -->
ESP (ESP32/ESP8266, Board/Sonoff): ESP8266 D1 mini pro
Please provide details about which ESP you're using below. Pool timer
Affected component: When validating I get the error but previously work before last two updates that happened this week Please add the link to the documentation at https://esphome.io/index.html of the component in question. -->
Description of problem:
INFO Reading configuration... ERROR Unexpected exception while reading configuration: Traceback (most recent call last): File "/usr/local/bin/esphome", line 11, in
load_entry_point('esphome', 'console_scripts', 'esphome')()
File "/opt/esphome/esphome/main.py", line 483, in main
return run_esphome(sys.argv)
File "/opt/esphome/esphome/main.py", line 466, in run_esphome
config = read_config(args.verbose)
File "/opt/esphome/esphome/config.py", line 793, in read_config
res = load_config()
File "/opt/esphome/esphome/config.py", line 653, in load_config
return _load_config()
File "/opt/esphome/esphome/config.py", line 641, in _load_config
result = validate_config(config)
File "/opt/esphome/esphome/config.py", line 551, in validate_config
validated = comp.config_schema(input_conf)
File "/opt/esphome/esphome/voluptuous_schema.py", line 32, in call
res = super(_Schema, self).call(data)
File "/usr/local/lib/python2.7/dist-packages/voluptuous/schema_builder.py", line 267, in call
return self._compiled([], data)
File "/usr/local/lib/python2.7/dist-packages/voluptuous/schema_builder.py", line 589, in validate_dict
return base_validate(path, iteritems(data), out)
File "/opt/esphome/esphome/voluptuous_schema.py", line 106, in validate_mapping
key_value_map[key.schema] = key.default()
File "/opt/esphome/esphome/components/time/init.py", line 104, in detect_tz
return convert_tz(tz)
File "/opt/esphome/esphome/components/time/init.py", line 74, in convert_tz
dstoffset1 = transition_info[idx1][1]
IndexError: list index out of range
Problem-relevant YAML-configuration entries:
Traceback (if applicable):
Additional information and things you've tried: recreating the yaml from start after deleting deleting it first