from socket import socket, AF_INET, SOCK_STREAM

class SimRelay(object):
    def __init__(self):
        """
            Creates a simulated relay instance
        """

    def off(self):
        self.set(0)

    def on(self):
        self.set(1)

    def set(self, state):
        """
            Sets relay state:
                0: Off
                1: On
        """
        print("State changed to {0}".format(state))
6459b5ff90daca98004bfc70897437bfd56a3d21
<mask token>


class SimRelay(object):
    <mask token>
    <mask token>

    def on(self):
        self.set(1)
    <mask token>

<mask token>


class SimRelay(object):

    def __init__(self):
        """
            Creates a simulated relay instance
        """
    <mask token>

    def on(self):
        self.set(1)
    <mask token>

<mask token>


class SimRelay(object):

    def __init__(self):
        """
            Creates a simulated relay instance
        """

    def off(self):
        self.set(0)

    def on(self):
        self.set(1)

    def set(self, state):
        """
            Sets relay state:
                0: Off
                1: On
        """
        print('State changed to {0}'.format(state))

from socket import socket, AF_INET, SOCK_STREAM


class SimRelay(object):

    def __init__(self):
        """
            Creates a simulated relay instance
        """

    def off(self):
        self.set(0)

    def on(self):
        self.set(1)

    def set(self, state):
        """
            Sets relay state:
                0: Off
                1: On
        """
        print('State changed to {0}'.format(state))

from socket import socket, AF_INET, SOCK_STREAM

class SimRelay(object):
    def __init__(self):
        """
            Creates a simulated relay instance
        """

    def off(self):
        self.set(0)

    def on(self):
        self.set(1)

    def set(self, state):
        """
            Sets relay state:
                0: Off
                1: On
        """
        print("State changed to {0}".format(state))