'Retrieve sensor data from the camera.'

def update(self):

    camera = self.data.cameras[self._camera_name]
    if (self._type == 'temperature'):
        self._state = camera.temperature
    elif (self._type == 'battery'):
        self._state = camera.battery_string
    elif (self._type == 'notifications'):
        self._state = camera.notifications
    else:
        self._state = None
        _LOGGER.warning('Could    not    retrieve    state    from    %s', self.name)
