mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-22 16:56:29 +00:00
Update light.md (#2089)
This commit is contained in:
parent
1179d61779
commit
931203972d
@ -145,7 +145,7 @@ BRIGHTNESS_SCALE = (1, 1023)
|
|||||||
To scale the brightness to the device range:
|
To scale the brightness to the device range:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
from homeassistant.util.color import percentage_to_ranged_value
|
from homeassistant.util.percentage import percentage_to_ranged_value
|
||||||
BRIGHTNESS_SCALE = (1, 1023)
|
BRIGHTNESS_SCALE = (1, 1023)
|
||||||
|
|
||||||
...
|
...
|
||||||
|
Loading…
x
Reference in New Issue
Block a user