后来看了你的另一篇文章,自己改了一下在0.92系统用,但是ha还是报错,能否帮忙看一下呢?
2019-07-24 23:56:58 ERROR (MainThread) [homeassistant.setup] Error during setup of component broan
Traceback (most recent call last):
File "/usr/src/app/homeassistant/setup.py", line 156, in _async_setup_component
component.setup, hass, processed_config) # type: ignore
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/broan/__init__.py", line 34, in setup
load_platform(hass, 'fan', DOMAIN)
TypeError: load_platform() missing 2 required positional arguments: 'discovered' and 'hass_config'
|