* Check for attribute existence as smartplug does not have them (for HS220 support) * use getattr over hasattr and a separate check
* Check for attribute existence as smartplug does not have them (for HS220 support) * use getattr over hasattr and a separate check