'Get the latest data from the sensor.'

def update(self):

    self._broadlink_data.update()
    if (self._broadlink_data.data is None):
        return
    self._state = self._broadlink_data.data[self._type]
