'Generate a data dictionary (self._data) from metadata.'

def _init_data_struct(self):

    if self._state:
        self._data.update({self._state: STATE_UNKNOWN})
    else:
        _LOGGER.critical("Can't    initialize    sensor    %s", self._name)
