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_TEMP_UNIT: self._temp_unit,
            ATTR_AC_CURRENT_TEMP: self._ac_current_temp,
            ATTR_AC_POWER_CONSUMPTION: self._ac_power_consumption,
            #ATTR_RUN_COMPLETED: self._run_completed,
            #ATTR_ERROR_STATE: self._error_state,
            #ATTR_ERROR_MSG: self._error_msg,
            ATTR_RUN_STATE: self._current_run_state,
            #ATTR_PRE_STATE: self._pre_state,
            #ATTR_CURRENT_COURSE: self._current_course,
            #ATTR_TEMPCONTROL_OPTION_STATE: self._tempcontrol_option_state,
            #ATTR_DRYLEVEL_OPTION_STATE: self._drylevel_option_state,
            # ATTR_TIMEDRY_OPTION_STATE: self._timedry_option_state,
            #ATTR_REMAIN_TIME: self._remain_time,
            #ATTR_INITIAL_TIME: self._initial_time,
            #ATTR_RESERVE_TIME: self._reserve_time,
            #ATTR_DOORLOCK_MODE: self._doorlock_mode,
            #ATTR_CHILDLOCK_MODE: self._childlock_mode,
        }
        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_TEMP_UNIT: self._temp_unit,
            ATTR_AC_CURRENT_TEMP: self._ac_current_temp,
            ATTR_AC_POWER_CONSUMPTION: self._ac_power_consumption,
            ATTR_RUN_STATE: self._current_run_state,
        }
        return data
def device_state_attributes ( self ) : if not self . _is_default : return None data = { ATTR_TEMP_UNIT : self . _temp_unit , ATTR_AC_CURRENT_TEMP : self . _ac_current_temp , ATTR_AC_POWER_CONSUMPTION : self . _ac_power_consumption , ATTR_RUN_STATE : self . _current_run_state , } return data
Return the optional state attributes.
Return the optional state attributes .
"""Return the optional state attributes.""" #ATTR_RUN_COMPLETED: self._run_completed, #ATTR_ERROR_STATE: self._error_state, #ATTR_ERROR_MSG: self._error_msg, #ATTR_PRE_STATE: self._pre_state, #ATTR_CURRENT_COURSE: self._current_course, #ATTR_TEMPCONTROL_OPTION_STATE: self._tempcontrol_option_state, #ATTR_DRYLEVEL_OPTION_STATE: self._drylevel_option_state, # ATTR_TIMEDRY_OPTION_STATE: self._timedry_option_state, #ATTR_REMAIN_TIME: self._remain_time, #ATTR_INITIAL_TIME: self._initial_time, #ATTR_RESERVE_TIME: self._reserve_time, #ATTR_DOORLOCK_MODE: self._doorlock_mode, #ATTR_CHILDLOCK_MODE: self._childlock_mode,
self