from electronic import ElectronicDevice
from command import Command


class TurnOn(Command):

    def execute(self):
        self.device.turn_on()

    def undo(self):
        self.device.turn_off()

a95899f77d35a6b5472a09527d70a25fb7c7882d
<mask token>


class TurnOn(Command):
    <mask token>
    <mask token>

<mask token>


class TurnOn(Command):
    <mask token>

    def undo(self):
        self.device.turn_off()

<mask token>


class TurnOn(Command):

    def execute(self):
        self.device.turn_on()

    def undo(self):
        self.device.turn_off()

from electronic import ElectronicDevice
from command import Command


class TurnOn(Command):

    def execute(self):
        self.device.turn_on()

    def undo(self):
        self.device.turn_off()
