mirror of
https://github.com/home-assistant/core.git
synced 2025-07-12 15:57:06 +00:00
Make life of Windows users a bit better
This commit is contained in:
parent
7dba1b5303
commit
a3906242e9
@ -5,6 +5,7 @@ import sys
|
|||||||
import os
|
import os
|
||||||
import argparse
|
import argparse
|
||||||
import subprocess
|
import subprocess
|
||||||
|
import importlib
|
||||||
|
|
||||||
DEPENDENCIES = ['requests>=2.0', 'pyyaml>=3.11', 'pytz>=2015.2']
|
DEPENDENCIES = ['requests>=2.0', 'pyyaml>=3.11', 'pytz>=2015.2']
|
||||||
IS_VIRTUAL = (getattr(sys, 'base_prefix', sys.prefix) != sys.prefix or
|
IS_VIRTUAL = (getattr(sys, 'base_prefix', sys.prefix) != sys.prefix or
|
||||||
@ -123,6 +124,9 @@ def main():
|
|||||||
validate_python()
|
validate_python()
|
||||||
validate_dependencies()
|
validate_dependencies()
|
||||||
|
|
||||||
|
# Windows needs this to pick up new modules
|
||||||
|
importlib.invalidate_caches()
|
||||||
|
|
||||||
bootstrap = ensure_path_and_load_bootstrap()
|
bootstrap = ensure_path_and_load_bootstrap()
|
||||||
|
|
||||||
validate_git_submodules()
|
validate_git_submodules()
|
||||||
@ -133,11 +137,10 @@ def main():
|
|||||||
config_path = ensure_config_path(config_dir)
|
config_path = ensure_config_path(config_dir)
|
||||||
|
|
||||||
if args.demo_mode:
|
if args.demo_mode:
|
||||||
from homeassistant.components import http, demo
|
from homeassistant.components import frontend, demo
|
||||||
|
|
||||||
# Demo mode only requires http and demo components.
|
|
||||||
hass = bootstrap.from_config_dict({
|
hass = bootstrap.from_config_dict({
|
||||||
http.DOMAIN: {},
|
frontend.DOMAIN: {},
|
||||||
demo.DOMAIN: {}
|
demo.DOMAIN: {}
|
||||||
})
|
})
|
||||||
else:
|
else:
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
""" DO NOT MODIFY. Auto-generated by build_frontend script """
|
""" DO NOT MODIFY. Auto-generated by build_frontend script """
|
||||||
VERSION = "fcdb0ebfe95f973b1354ede21966454f"
|
VERSION = "4f94fd4404583fbf27cc899c024d26ff"
|
||||||
|
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
|||||||
Subproject commit df15796f189f8f4c495a6d86a083b396597a421e
|
Subproject commit 576c04efb49a8a5f7f35734458ffc93f874dd68d
|
Loading…
x
Reference in New Issue
Block a user