'Initialize the data object.'

def __init__(self, smartplug):

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