That code is for a device handler (formerly called a smart device type), not a smart app. They get installed into different sections of the IDE: