- 积分
- 379
- 金钱
- 311
- 威望
- 0
- 贡献
- 0
- HASS币
- 0
中级会员
- 积分
- 379
- 金钱
- 311
- HASS币
- 0
|
发表于 2022-2-15 21:21:32
|
显示全部楼层
Error setting up entry 881a8a15aa (19) for bemfa
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 304, in async_setup
result = await component.async_setup_entry(hass, self) # type: ignore
File "/config/custom_components/bemfa/__init__.py", line 19, in async_setup_entry
mqtt = await hass.async_add_executor_job(
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/bemfa/mqtt.py", line 47, in __init__
self._connect()
File "/config/custom_components/bemfa/mqtt.py", line 67, in _connect
generate_msg(state.domain, state.state, state.attributes),
File "/config/custom_components/bemfa/helper.py", line 47, in generate_msg
return MSG_SEPARATOR.join(map(str, generate_msg_list(domain, state, attributes)))
File "/config/custom_components/bemfa/helper.py", line 33, in generate_msg_list
msg_list += list(
File "/config/custom_components/bemfa/helper.py", line 35, in <lambda>
lambda f: f(state, attributes),
File "/config/custom_components/bemfa/entities_config.py", line 248, in <lambda>
lambda state, attributes: round(attributes[ATTR_TEMPERATURE])
TypeError: type NoneType doesn't define __round__ method |
|