@refresh_system
async def async_turn_on(self, **kwargs) -> None:
    'Turn on the light.\n\n        This handles brightness and light effects for lights that do support\n        them.\n        '
    brightness = kwargs.get(ATTR_BRIGHTNESS)
    effect = kwargs.get(ATTR_EFFECT)
    if effect:
        effect = AqualinkLightEffect[effect].value
        (await self.dev.set_effect(effect))
    elif brightness:
        pct = (int(round(((brightness * 4.0) / 255))) * 25)
        (await self.dev.set_brightness(pct))
    else:
        (await self.dev.turn_on())
Turn on the light.

This handles brightness and light effects for lights that do support
them.
@refresh_system
async def async_turn_on(self, **kwargs) -> None:
    'Turn on the light.\n\n        This handles brightness and light effects for lights that do support\n        them.\n        '
    brightness = kwargs.get(ATTR_BRIGHTNESS)
    effect = kwargs.get(ATTR_EFFECT)
    if effect:
        effect = AqualinkLightEffect[effect].value
        (await self.dev.set_effect(effect))
    elif brightness:
        pct = (int(round(((brightness * 4.0) / 255))) * 25)
        (await self.dev.set_brightness(pct))
    else:
        (await self.dev.turn_on())