def METHOD_NAME(self, origin=None, status=None):
    if status is None:
        status = "Unknown"
    try:
        connected = self.service.driver.connected
    except AttributeError:
        return
    try:
        if isinstance(status, bytes):
            status = status.decode("unicode-escape")
        self.button_device_connect.SetLabel(status)
        if connected:
            self.set_button_connected()
        else:
            self.set_button_disconnected()
    except RuntimeError:
        pass