async def async_turn_on(self, **kwargs) -> None:
    'Turn the light on.'
    if (ATTR_BRIGHTNESS in kwargs):
        (await self._device.set_dim_level((kwargs[ATTR_BRIGHTNESS] / 255.0)))
    else:
        (await self._device.set_dim_level(1))
Turn the light on.
async def async_turn_on(self, **kwargs) -> None:
    
    if (ATTR_BRIGHTNESS in kwargs):
        (await self._device.set_dim_level((kwargs[ATTR_BRIGHTNESS] / 255.0)))
    else:
        (await self._device.set_dim_level(1))