'Return the state attributes of the sensor.'

@property
def device_state_attributes(self):

    state_attr = {attr: getattr(self, attr) for attr in ATTR_TO_PROPERTY if (getattr(self, attr) is not None)}
    return state_attr
