|
hassbain一检查配置就一直转圈,然后报错 求解
Log Details (ERROR)Sun Oct 07 2018 23:28:19 GMT+0800 (中国标准时间)
Error handling requestTraceback (most recent call last): File "/srv/homeassistant/lib/python3.5/site-packages/aiohttp/web_protocol.py", line 390, in start resp = await self._request_handler(request) File "/srv/homeassistant/lib/python3.5/site-packages/aiohttp/web_app.py", line 366, in _handle resp = await handler(request) File "/srv/homeassistant/lib/python3.5/site-packages/aiohttp/web_middlewares.py", line 106, in impl return await handler(request) File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/http/static.py", line 66, in staticresource_middleware return await handler(request) File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/http/real_ip.py", line 34, in real_ip_middleware return await handler(request) File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/http/ban.py", line 66, in ban_middleware return await handler(request) File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/http/auth.py", line 68, in auth_middleware return await handler(request) File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/http/real_ip.py", line 34, in real_ip_middleware return await handler(request) File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/http/ban.py", line 66, in ban_middleware return await handler(request) File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/http/auth.py", line 68, in auth_middleware return await handler(request) File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/http/view.py", line 113, in handle result = await result File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/config/core.py", line 24, in post errors = yield from async_check_ha_config_file(request.app['hass']) File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/config.py", line 795, in async_check_ha_config_file check_ha_config_file, hass) File "/usr/lib/python3.5/asyncio/futures.py", line 380, in __iter__ yield self # This tells Task to wait for completion. File "/usr/lib/python3.5/asyncio/tasks.py", line 304, in _wakeup future.result() File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result raise self._exception File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run result = self.fn(*self.args, **self.kwargs) File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/scripts/check_config.py", line 372, in check_ha_config_file platform = loader.get_platform(hass, domain, p_name) File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/loader.py", line 60, in get_platform return get_component(hass, PLATFORM_FORMAT.format(domain, platform)) File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/loader.py", line 92, in get_component module = importlib.import_module(path) File "/usr/lib/python3.5/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 986, in _gcd_import File "<frozen importlib._bootstrap>", line 969, in _find_and_load File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 673, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 669, in exec_module File "<frozen importlib._bootstrap_external>", line 775, in get_code File "<frozen importlib._bootstrap_external>", line 735, in source_to_code File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removedValueError: source code string cannot contain null bytes
|
|