『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
查看: 1872|回复: 0

[技术探讨] hassbain一检查配置就一直转圈,然后报错

[复制链接]

40

主题

341

帖子

2346

积分

金牌会员

Rank: 6Rank: 6

积分
2346
金钱
2005
HASS币
0
发表于 2018-10-7 23:30:49 | 显示全部楼层 |阅读模式
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

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-27 23:11 , Processed in 0.082024 second(s), 22 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表