'Get the latest data from the smart plug.'

def update(self):

    self.state = self.smartplug.state
    self.temperature = self.smartplug.temperature
    self.current_consumption = self.smartplug.current_consumption
    self.total_consumption = self.smartplug.total_consumption
