mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
📝 Fix fixture encoding (#12296)
This commit is contained in:
parent
a71d5f4614
commit
e4a826d1c1
@ -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()
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user