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_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_SPIN_OPTION_STATE: self._spin_option_state,
            ATTR_WATERTEMP_OPTION_STATE: self._watertemp_option_state,
            ATTR_DRYLEVEL_OPTION_STATE: self._drylevel_option_state,
            ATTR_TUBCLEAN_COUNT: self._tubclean_count,
            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_DOORCLOSE_MODE: self._doorclose_mode,
            ATTR_CHILDLOCK_MODE: self._childlock_mode,
            ATTR_REMOTESTART_MODE: self._remotestart_mode,
            ATTR_CREASECARE_MODE: self._creasecare_mode,
            ATTR_STEAM_MODE: self._steam_mode,
            ATTR_STEAM_SOFTENER_MODE: self._steam_softener_mode,
            ATTR_PREWASH_MODE: self._prewash_mode,
            ATTR_TURBOWASH_MODE: self._turbowash_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_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_SPIN_OPTION_STATE: self._spin_option_state,
            ATTR_WATERTEMP_OPTION_STATE: self._watertemp_option_state,
            ATTR_DRYLEVEL_OPTION_STATE: self._drylevel_option_state,
            ATTR_TUBCLEAN_COUNT: self._tubclean_count,
            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_DOORCLOSE_MODE: self._doorclose_mode,
            ATTR_CHILDLOCK_MODE: self._childlock_mode,
            ATTR_REMOTESTART_MODE: self._remotestart_mode,
            ATTR_CREASECARE_MODE: self._creasecare_mode,
            ATTR_STEAM_MODE: self._steam_mode,
            ATTR_STEAM_SOFTENER_MODE: self._steam_softener_mode,
            ATTR_PREWASH_MODE: self._prewash_mode,
            ATTR_TURBOWASH_MODE: self._turbowash_mode,
        }
        return data
def device_state_attributes ( self ) : if not self . _is_default : return None data = { 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_SPIN_OPTION_STATE : self . _spin_option_state , ATTR_WATERTEMP_OPTION_STATE : self . _watertemp_option_state , ATTR_DRYLEVEL_OPTION_STATE : self . _drylevel_option_state , ATTR_TUBCLEAN_COUNT : self . _tubclean_count , 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_DOORCLOSE_MODE : self . _doorclose_mode , ATTR_CHILDLOCK_MODE : self . _childlock_mode , ATTR_REMOTESTART_MODE : self . _remotestart_mode , ATTR_CREASECARE_MODE : self . _creasecare_mode , ATTR_STEAM_MODE : self . _steam_mode , ATTR_STEAM_SOFTENER_MODE : self . _steam_softener_mode , ATTR_PREWASH_MODE : self . _prewash_mode , ATTR_TURBOWASH_MODE : self . _turbowash_mode , } return data
Return the optional state attributes.
Return the optional state attributes .
"""Return the optional state attributes."""
self