mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-14 04:46:29 +00:00
Update light.md (#2002)
This commit is contained in:
parent
f56f4855d5
commit
90dfcc6e68
@ -127,8 +127,7 @@ BRIGHTNESS_SCALE = (1, 1023)
|
||||
To scale the brightness to the device range:
|
||||
|
||||
```python
|
||||
from homeassistant.util.color import value_to_brightness
|
||||
|
||||
from homeassistant.util.color import percentage_to_ranged_value
|
||||
BRIGHTNESS_SCALE = (1, 1023)
|
||||
|
||||
...
|
||||
|
Loading…
x
Reference in New Issue
Block a user