'Get the latest data and updates the states.'

@asyncio.coroutine
def async_update(self):

    if self.is_upper:
        self._deviation = bool((self.sensor_value > self._threshold))
    else:
        self._deviation = bool((self.sensor_value < self._threshold))
