You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixed this by adding these missing arguments to the vacuum.py
entry = ConfigEntry(
domain=PLATFORM_NAME,
data=config,
version=2,
title=config[CONF_NAME],
source=SOURCE_USER, options={}, # Add default or specific options here
unique_id=config.get(CONF_NAME, "xiaomi_viomi_vacuum"), # Provide a unique identifier
)
2024-07-12 15:49:37.397 ERROR (MainThread) [homeassistant.components.vacuum] Error while setting up xiaomi_viomi platform for vacuum
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 364, in _async_setup_platform
await asyncio.shield(awaitable)
File "/config/custom_components/xiaomi_viomi/vacuum.py", line 55, in async_setup_platform
entry = ConfigEntry(
^^^^^^^^^^^^
TypeError: ConfigEntry.init() missing 2 required keyword-only arguments: 'options' and 'unique_id'
The text was updated successfully, but these errors were encountered: