custom_components/broadlinkcover/cover.py
def device_state_attributes(self):
        """Return the device state attributes."""
        attr = {}
        if self._travel_time_down is not None:
            attr[CONF_TRAVELLING_TIME_DOWN] = self._travel_time_down
        if self._travel_time_up is not None:
            attr[CONF_TRAVELLING_TIME_UP] = self._travel_time_up 
        attr[ATTR_UNCONFIRMED_STATE] = str(self._assume_uncertain_position)
        return attr
Return the device state attributes.
Return the device state attributes.
Return the device state attributes .
def device_state_attributes(self):
        attr = {}
        if self._travel_time_down is not None:
            attr[CONF_TRAVELLING_TIME_DOWN] = self._travel_time_down
        if self._travel_time_up is not None:
            attr[CONF_TRAVELLING_TIME_UP] = self._travel_time_up 
        attr[ATTR_UNCONFIRMED_STATE] = str(self._assume_uncertain_position)
        return attr
def device_state_attributes ( self ) : attr = { } if self . _travel_time_down is not None : attr [ CONF_TRAVELLING_TIME_DOWN ] = self . _travel_time_down if self . _travel_time_up is not None : attr [ CONF_TRAVELLING_TIME_UP ] = self . _travel_time_up attr [ ATTR_UNCONFIRMED_STATE ] = str ( self . _assume_uncertain_position ) return attr
Return the device state attributes.
Return the device state attributes .
"""Return the device state attributes."""
self