private static T GetAttribute <T>(this DeviceStatus status) where T : Attribute
 {
     return(status.GetType()
            .GetMember(Enum.GetName(status.GetType(), status) !)[0]