Xiaomi Vaccum Log Error

I have recently been having issues with the xiaomi_miio platform in regards to my vaccum not being discovered with the following erros in the log.

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 322, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 472, in async_device_update
    await self.hass.async_add_executor_job(self.update)
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/xiaomi_miio/vacuum.py", line 459, in update
    self._fan_speeds = self._vacuum.fan_speed_presets()
AttributeError: 'Vacuum' object has no attribute 'fan_speed_presets'

Vaccum works in App and token is correct.

ok so I figured out the issue was to do with other custom_components using the python-miio dependancy older then 0.5.0.1. Solution is to change the manifest.json file within that cutom_component to use this latest dependancy. I had miheater and xiaomi_miio_fan that I needed to change will probably be upgraded soon.

"python-miio>=0.5.0.1"

hope this helps someone else