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