Cannot get Zemismart 2-gang wall switch to work

This is the function that returns the number of gangs based on the model of the device.