'Setup things to be run when tests are started.'

def setup_method(self, method):

    self.hass = get_test_home_assistant()
    self.values = [17, 20, 15.2, 5, 3.8, 9.2, 6.7, 14, 6]
    self.count = len(self.values)
    self.min = min(self.values)
    self.max = max(self.values)
    self.total = sum(self.values)
    self.mean = round((sum(self.values) / len(self.values)), 2)
    self.median = round(statistics.median(self.values), 2)
    self.deviation = round(statistics.stdev(self.values), 2)
    self.variance = round(statistics.variance(self.values), 2)
    self.change = (self.values[(-1)] - self.values[0])
    self.average_change = (self.change / (len(self.values) - 1))
