mirror of
https://github.com/esphome/esphome.git
synced 2024-11-02 08:40:55 +01:00
Fix dashboard setup for python 3
This commit is contained in:
parent
9f4b666ef0
commit
28454ea4cd
@ -13,6 +13,7 @@ from esphome.helpers import mkdir_p
|
|||||||
from esphome.core import CoreType # noqa
|
from esphome.core import CoreType # noqa
|
||||||
from typing import Any, Dict, Optional # noqa
|
from typing import Any, Dict, Optional # noqa
|
||||||
|
|
||||||
|
from esphome.py_compat import text_type
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
@ -221,7 +222,7 @@ class EsphomeStorageJSON(object):
|
|||||||
def get_default(): # type: () -> EsphomeStorageJSON
|
def get_default(): # type: () -> EsphomeStorageJSON
|
||||||
return EsphomeStorageJSON(
|
return EsphomeStorageJSON(
|
||||||
storage_version=1,
|
storage_version=1,
|
||||||
cookie_secret=binascii.hexlify(os.urandom(64)),
|
cookie_secret=text_type(binascii.hexlify(os.urandom(64))),
|
||||||
last_update_check=None,
|
last_update_check=None,
|
||||||
remote_version=None,
|
remote_version=None,
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user