async def async_send_command(self, command, params=None, **kwargs):
        """Send a command to a vacuum cleaner.
        This method must be run in the event loop.
        """
        await self.hass.async_add_executor_job(
            partial(self.send_vacuum_command, command, params=params, **kwargs)
        )
Send a command to a vacuum cleaner.
        This method must be run in the event loop.
        
custom_components/xiaomi_miot/vacuum.py