Limit parallel requests in fibaro light (#71762)

This commit is contained in:
rappenze 2022-05-15 15:02:05 +02:00 committed by GitHub
parent 8549af3855
commit 2b637f71fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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."""