开启debug好像没看到什么东西.
之前是报错
2019-02-17 20:57:28 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/app/homeassistant/setup.py", line 56, in async_setup_component
return await task # type: ignore
File "/usr/src/app/homeassistant/setup.py", line 118, in _async_setup_component
conf_util.async_process_component_config(hass, config, domain)
File "/usr/src/app/homeassistant/config.py", line 687, in async_process_component_config
platform = get_platform(hass, domain, p_name)
File "/usr/src/app/homeassistant/loader.py", line 62, in get_platform
return get_component(hass, PLATFORM_FORMAT.format(domain, platform))
File "/usr/src/app/homeassistant/loader.py", line 94, in get_component
module = importlib.import_module(path)
File "/usr/local/lib/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 674, in exec_module
File "<frozen importlib._bootstrap_external>", line 781, in get_code
File "<frozen importlib._bootstrap_external>", line 741, in source_to_code
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/config/custom_components/sensor/yunmi_kettle.py", line 54
if int(temp) < 30 or int(temp) > 90:
^
TabError: inconsistent use of tabs and spaces in indentation
然后根据报错,注掉这部分代码重启就有了.好像是设置温度不行?
一代的温度范围最低50
大神再给看看,感觉应该差不多改点啥就好了.
|