@property
def state_attributes(self):
    'Return the state attributes.'
    if (self.code_format is None):
        return None
    state_attr = {ATTR_CODE_FORMAT: self.code_format, ATTR_CHANGED_BY: self.changed_by}
    return state_attr
Return the state attributes.
@property
def state_attributes(self):
    
    if (self.code_format is None):
        return None
    state_attr = {ATTR_CODE_FORMAT: self.code_format, ATTR_CHANGED_BY: self.changed_by}
    return state_attr