AttributeError: 'ApiConfig'object has noattribute'base_url'
完整的错误信息如下:
1 2 3 4 5 6 7 8 9 10 11 12 13
Logger: homeassistant.config_entries Source: custom_components/havcs/__init__.py:250 Integration: Home Assistant Voice Control Skill (documentation) First occurred: 18:05:49 (1 occurrences) Last logged: 18:05:49
Error setting up entry 主配置[configuration.yml] for havcs Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line269, in async_setup result = await component.async_setup_entry(hass, self) # type: ignore File "/config/custom_components/havcs/__init__.py", line250, in async_setup_entry http_manager = hass.data[DOMAIN][DATA_HAVCS_HTTP_MANAGER] = HavcsHttpManager(hass, conf.get(CONF_HTTP, {}).get(CONF_HA_URL, hass.config.api.base_url), DEVICE_CONFIG_SCHEMA) AttributeError: 'ApiConfig'object has noattribute'base_url'