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

def update(self):

    if (self._data.status is None):
        self._state = None
        return
    if (self.type not in self._data.status):
        self._state = None
    else:
        self._state = self._data.status[self.type]
