From d0cda964acc870688c7be0e54665dc6a89a2ee9f Mon Sep 17 00:00:00 2001 From: Roy Hooper Date: Mon, 7 Sep 2015 10:56:16 -0400 Subject: [PATCH] Handle UTF-8 in config file. --- homeassistant/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/config.py b/homeassistant/config.py index 511ef9ad0db..2ec706e4512 100644 --- a/homeassistant/config.py +++ b/homeassistant/config.py @@ -124,7 +124,7 @@ def load_yaml_config_file(config_path): def parse(fname): """ Parse a YAML file. """ try: - with open(fname) as conf_file: + with open(fname, encoding='utf-8') as conf_file: # If configuration file is empty YAML returns None # We convert that to an empty dict return yaml.load(conf_file) or {}