📝 Fix fixture encoding (#12296)

This commit is contained in:
Otto Winter 2018-02-11 20:01:44 +01:00 committed by Paulus Schoutsen
parent a71d5f4614
commit e4a826d1c1

View file

@ -245,7 +245,7 @@ def fire_service_discovered(hass, service, info):
def load_fixture(filename):
"""Load a fixture."""
path = os.path.join(os.path.dirname(__file__), 'fixtures', filename)
with open(path) as fptr:
with open(path, encoding='utf-8') as fptr:
return fptr.read()