'Get the latest data and update the state.'

def update(self):

    import mpd
    try:
        if (not self._is_connected):
            self._connect()
        self._fetch_status()
    except (mpd.ConnectionError, OSError, BrokenPipeError, ValueError):
        self._disconnect()
