def _to_hass_brightness(brightness):
    return int(brightness * 255)
Convert percentage to Home Assistant brightness units.
dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/light/limitlessled.py/_to_hass_brightness