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_DOOROPEN_STATE: self._dooropen_state,
            ATTR_RINSEREFILL_STATE: self._rinserefill_state,
            ATTR_SALTREFILL_STATE: self._saltrefill_state,
            ATTR_RUN_STATE: self._current_run_state,
            ATTR_PROCESS_STATE: self._process_state,
            ATTR_CURRENT_COURSE: self._current_course,
            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_HALFLOAD_MODE: self._halfload_mode,
            ATTR_CHILDLOCK_MODE: self._childlock_mode,
            ATTR_DELAYSTART_MODE: self._delaystart_mode,
            ATTR_ENERGYSAVER_MODE: self._energysaver_mode,
            ATTR_DUALZONE_MODE: self._dualzone_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_DOOROPEN_STATE: self._dooropen_state,
            ATTR_RINSEREFILL_STATE: self._rinserefill_state,
            ATTR_SALTREFILL_STATE: self._saltrefill_state,
            ATTR_RUN_STATE: self._current_run_state,
            ATTR_PROCESS_STATE: self._process_state,
            ATTR_CURRENT_COURSE: self._current_course,
            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_HALFLOAD_MODE: self._halfload_mode,
            ATTR_CHILDLOCK_MODE: self._childlock_mode,
            ATTR_DELAYSTART_MODE: self._delaystart_mode,
            ATTR_ENERGYSAVER_MODE: self._energysaver_mode,
            ATTR_DUALZONE_MODE: self._dualzone_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_DOOROPEN_STATE : self . _dooropen_state , ATTR_RINSEREFILL_STATE : self . _rinserefill_state , ATTR_SALTREFILL_STATE : self . _saltrefill_state , ATTR_RUN_STATE : self . _current_run_state , ATTR_PROCESS_STATE : self . _process_state , ATTR_CURRENT_COURSE : self . _current_course , 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_HALFLOAD_MODE : self . _halfload_mode , ATTR_CHILDLOCK_MODE : self . _childlock_mode , ATTR_DELAYSTART_MODE : self . _delaystart_mode , ATTR_ENERGYSAVER_MODE : self . _energysaver_mode , ATTR_DUALZONE_MODE : self . _dualzone_mode , } return data
Return the optional state attributes.
Return the optional state attributes .
"""Return the optional state attributes."""
self