updated device_abilities to search for a class as either any matching attributes on the component, or any keys in the component.structure