homeassistant-vacuum-viomi icon indicating copy to clipboard operation
homeassistant-vacuum-viomi copied to clipboard

Issues with HA 2024.1.0

Open kmavrov opened this issue 1 year ago • 1 comments

https://github.com/nergal/homeassistant-vacuum-viomi/blob/47db17c360aa28292cb0f3a099b4f6aa45bef950/custom_components/xiaomi_viomi/vacuum.py#L58

Integration broke since Home Assistant 2024.1.0. Add here an argument minor_version=0 and it should be good to go.
Otherwise it throws TypeError: ConfigEntry.__init__() missing 1 required keyword-only argument: 'minor_version'

kmavrov avatar Jan 08 '24 15:01 kmavrov

fixed this bij adding a line to the vacuum.py file

starting at line 55, i added the minor_version=2,

entry = ConfigEntry(
    domain=PLATFORM_NAME,
    data=config,
    version=2,
    minor_version=2,
    title=config[CONF_NAME],
    source=SOURCE_USER,
)

Turntable67 avatar Jan 09 '24 14:01 Turntable67