|
发表于 2020-11-21 16:44:54
|
显示全部楼层
本帖最后由 sayeret 于 2020-11-21 17:41 编辑
感谢,浴霸已经接入,型号是yeelight pro,(yeelink.bhf_light.v1)模式为自动识别,发现功能只有排气,没有灯、暖风等功能
日志详细信息( ERROR )Logger: homeassistant.config_entries
Source: custom_components/miio_yeelink/light.py:30
First occurred: 下午5:31:24 (1 occurrences)
Last logged: 下午5:31:24
Error setting up entry bedroom heater for lightTraceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 222, in async_setup result = await component.async_setup_entry( # type: ignore File "/usr/src/homeassistant/homeassistant/components/light/__init__.py", line 287, in async_setup_entry return await hass.data[DOMAIN].async_setup_entry(entry) File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 144, in async_setup_entry platform = await async_prepare_setup_platform( File "/usr/src/homeassistant/homeassistant/setup.py", line 276, in async_prepare_setup_platform platform = integration.get_platform(domain) File "/usr/src/homeassistant/homeassistant/loader.py", line 389, in get_platform cache[full_name] = importlib.import_module( File "/usr/local/lib/python3.8/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1014, in _gcd_import File "<frozen importlib._bootstrap>", line 991, in _find_and_load File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 671, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 783, in exec_module File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "/config/custom_components/miio_yeelink/light.py", line 30, in <module> vol.Required('time_period'): cv.positive_time_period,AttributeError: module 'homeassistant.helpers.config_validation' has no attribute 'positive_time_period'
|
|