'Get the latest data from the device and update the data.'

def update(self):

    from pymystrom import exceptions
    try:
        self.data = self.plug.get_status()
    except exceptions.MyStromConnectionError:
        self.data = {'power': 0, 'relay': False}
        _LOGGER.error("No    route    to    device    '%s'.    Is    device    offline?", self._resource)
