'Get the latest status and use it to update our sensor state.'

def update(self):

    if (self.type.upper() not in self._data.status):
        self._state = None
        self._inferred_unit = None
    else:
        (self._state, self._inferred_unit) = infer_unit(self._data.status[self.type.upper()])
