def start_pause(self, **kwargs):
    'Start, pause or resume the cleaning task.'
    from libpurecoollink.const import Dyson360EyeMode
    if (self._device.state.state in [Dyson360EyeMode.FULL_CLEAN_PAUSED]):
        _LOGGER.debug('Resume device %s', self.name)
        self._device.resume()
    elif (self._device.state.state in [Dyson360EyeMode.INACTIVE_CHARGED, Dyson360EyeMode.INACTIVE_CHARGING]):
        _LOGGER.debug('Start device %s', self.name)
        self._device.start()
    else:
        _LOGGER.debug('Pause device %s', self.name)
        self._device.pause()
Start, pause or resume the cleaning task.
def start_pause(self, **kwargs):
    
    from libpurecoollink.const import Dyson360EyeMode
    if (self._device.state.state in [Dyson360EyeMode.FULL_CLEAN_PAUSED]):
        _LOGGER.debug('Resume device %s', self.name)
        self._device.resume()
    elif (self._device.state.state in [Dyson360EyeMode.INACTIVE_CHARGED, Dyson360EyeMode.INACTIVE_CHARGING]):
        _LOGGER.debug('Start device %s', self.name)
        self._device.start()
    else:
        _LOGGER.debug('Pause device %s', self.name)
        self._device.pause()