mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
🔥 codecs
This commit is contained in:
parent
37cd62447e
commit
fb29611c15
@ -4,7 +4,6 @@ from __future__ import print_function
|
||||
import sys
|
||||
import os
|
||||
import argparse
|
||||
import codecs
|
||||
|
||||
from homeassistant import bootstrap
|
||||
import homeassistant.config as config_util
|
||||
@ -182,7 +181,7 @@ def install_osx():
|
||||
|
||||
path = os.path.expanduser("~/Library/LaunchAgents/org.homeassistant.plist")
|
||||
|
||||
with codecs.open(path, 'w', 'utf-8') as outp:
|
||||
with open(path, 'w', encoding='utf-8') as outp:
|
||||
outp.write(plist)
|
||||
|
||||
os.popen('launchctl load -w -F ' + path)
|
||||
|
Loading…
x
Reference in New Issue
Block a user