Limit parallel requests in fibaro light (#71762)

This commit is contained in:
rappenze 2022-05-15 15:02:05 +02:00 committed by Paulus Schoutsen
parent 5fbc4b8dba
commit 107615ebef

View File

@ -23,6 +23,8 @@ from homeassistant.helpers.entity_platform import AddEntitiesCallback
from . import FIBARO_DEVICES, FibaroDevice
from .const import DOMAIN
PARALLEL_UPDATES = 2
def scaleto255(value: int | None) -> int:
"""Scale the input value from 0-100 to 0-255."""