wlkb
发表于 2018-8-17 12:26:30
學習學習
cnk700i
发表于 2018-8-17 12:29:06
yjb89 发表于 2018-8-17 12:24
那三个文件,认真核对需要替换的那几行,还是不行。建议楼主能不能直接把配置文件弄好。不然的话坑太多了。 ...
你传一下错误提示的截图我看看,回复点高级模式就能上传图片了。
yjb89
发表于 2018-8-17 12:34:13
大家别浪费时间了。一个破东东部署了一个上午,实验了无数次都报错。
yjb89
发表于 2018-8-17 12:39:49
删除了。看不出错误。反正就是几个文件,不是这个报错,就是那个报错。偶尔只出现一个通用定时器,一行,只有时间设置的那个。其他的我都按照三个文件,认真地查找对应的那三行,替换了。最后的结果就是替换的这三个文件报错。对齐什么的我都瞪着黄金眼与原来的行一致的。其实就是第三行不同。其他的没有什么不同。最后的结果就是那三个py文件报错。
cnk700i
发表于 2018-8-17 12:53:05
yjb89 发表于 2018-8-17 12:39
删除了。看不出错误。反正就是几个文件,不是这个报错,就是那个报错。偶尔只出现一个通用定时器,一行,只 ...
贴个报错信息就有这么难么:)
yjb89
发表于 2018-8-17 13:45:26
Traceback (most recent call last):File "/config/custom_components/input_text.py", line 110, in async_setup
component.async_register_entity_service(
AttributeError: 'EntityComponent' object has no attribute 'async_register_entity_service'2018-08-17 05:43:45 ERROR (MainThread) Error during setup of component input_select
Traceback (most recent call last):File "/config/custom_components/input_select.py", line 132, in async_setup
component.async_register_entity_service(
AttributeError: 'EntityComponent' object has no attribute 'async_register_entity_service'2018-08-17 05:43:45 ERROR (MainThread) Error during setup of component input_boolean
Traceback (most recent call last):
File "/usr/src/app/homeassistant/setup.py", line 143, in _async_setup_component
hass, processed_config)
File "/config/custom_components/input_boolean.py", line 86, in async_setup
component.async_register_entity_service(
AttributeError: 'EntityComponent' object has no attribute 'async_register_entity_service'2018-08-17 05:44:18 WARNING (MainThread) Unable to find service input_select/set_options
Traceback (most recent call last):
File "/usr/src/app/homeassistant/core.py", line 284, in async_run_job
target(*args)
File "/config/custom_components/common_timer.py", line 383, in update
if self.get_state(self._ui) == 'on':
File "/config/custom_components/common_timer.py", line 349, in get_state
return self._hass.states.get(entity_id).as_dict()['state']
AttributeError: 'NoneType' object has no attribute 'as_dict'
yjb89
发表于 2018-8-17 13:51:10
有折腾了一个小时,没戏。
cnk700i
发表于 2018-8-17 14:53:52
yjb89 发表于 2018-8-17 13:45
Traceback (most recent call last):File "/config/custom_components/input_text.py", line 110, in async ...
你这个提示调用的方法都不同,应该是下错文件了,选对自己的版本再下载。所以这三个文件不打包发出来,就是怕版本更新有改动就可能没法用了。所以稳妥的方法还是直接在官方components目录里找到三个文件直接修改。
情非殇
发表于 2018-8-17 14:56:41
感谢分享
nice2943
发表于 2018-8-17 15:03:21
感謝樓主\分享
页:
1
2
[3]
4
5
6
7
8
9
10
11
12