from .switchbot_ir_device import SwitchbotIrDevice


class IrLight(SwitchbotIrDevice):
    """Switchbot virtual IR Light"""

    def __init__(self, deviceId):
        super().__init__(deviceId)

    def brightness_up(self):
        """Brightness up"""
        self._body["command"] = "brightnessUp"
        result = self.command(self.deviceId, self._body)
        return result.text

    def brightness_down(self):
        """Brightness down"""
        self._body["command"] = "brightnessDown"
        result = self.command(self.deviceId, self._body)
        return result.text
