from enum import Enum, auto


class SwitchCommandType(Enum):
    UNKNOWN = auto()
    TURN_ON = auto()
    TURN_OFF = auto()
    PERCENTAGE = auto()


class SwitchCommandValue:
    def __init__(self, cmd_type: SwitchCommandType, percentage: int = None):
        self.type = cmd_type
        self.percentage = 0
        if percentage is not None:
            self.percentage = percentage

from enum import Enum, auto


class SwitchCommandType(Enum):
    UNKNOWN = auto()
    TURN_ON = auto()
    TURN_OFF = auto()
    PERCENTAGE = auto()


class SwitchCommandValue:
    def __init__(self, cmd_type: SwitchCommandType, percentage: int = None):
        self.type = cmd_type
        self.percentage = 0
        if percentage is not None:
            self.percentage = percentage
