custom_components/smartthinq_sensors/sensor.py
def device_state_attributes(self):
        """Return the optional state attributes."""
        if not self._is_default:
            return None

        data = {
            ATTR_REFRIGERATOR_TEMP: self._temp_refrigerator,
            ATTR_FREEZER_TEMP: self._temp_freezer,
            ATTR_TEMP_UNIT: self._temp_unit,
            ATTR_DOOROPEN_STATE: self._dooropen_state,
        }

        if self._api.state:
            for name, value in self._api.state.device_features.items():
                data[name] = value

        return data
Return the optional state attributes.
Return the optional state attributes.
Return the optional state attributes .
def device_state_attributes(self):
        if not self._is_default:
            return None
        data = {
            ATTR_REFRIGERATOR_TEMP: self._temp_refrigerator,
            ATTR_FREEZER_TEMP: self._temp_freezer,
            ATTR_TEMP_UNIT: self._temp_unit,
            ATTR_DOOROPEN_STATE: self._dooropen_state,
        }
        if self._api.state:
            for name, value in self._api.state.device_features.items():
                data[name] = value
        return data
def device_state_attributes ( self ) : if not self . _is_default : return None data = { ATTR_REFRIGERATOR_TEMP : self . _temp_refrigerator , ATTR_FREEZER_TEMP : self . _temp_freezer , ATTR_TEMP_UNIT : self . _temp_unit , ATTR_DOOROPEN_STATE : self . _dooropen_state , } if self . _api . state : for name , value in self . _api . state . device_features . items ( ) : data [ name ] = value return data
Return the optional state attributes.
Return the optional state attributes .
"""Return the optional state attributes."""
self