def init(empty=False):
    'Initialize the platform with devices.'
    global DEVICES
    DEVICES = ([] if empty else [MockToggleDevice('AC', STATE_ON), MockToggleDevice('AC', STATE_OFF), MockToggleDevice(None, STATE_OFF)])
Initialize the platform with devices.
def init(empty=False):
    
    global DEVICES
    DEVICES = ([] if empty else [MockToggleDevice('AC', STATE_ON), MockToggleDevice('AC', STATE_OFF), MockToggleDevice(None, STATE_OFF)])