'Update device state.'

def update(self):

    try:
        self._info = self._server.supervisor.getProcessInfo(self._info.get('name'))
        self._available = True
    except ConnectionRefusedError:
        _LOGGER.warning('Supervisord    not    available')
        self._available = False
