Apply the KLAP response budget to IoT bulbs (#1852)

This centralizes the response budgets in
`IotDevice.max_device_response_size` and removes the bulb override:
- KLAP: 2048 for every IoT device.
- Other transports: 4096 for bulbs and light strips, 16 KiB for other
IoT devices.
This commit is contained in:
ZeliardM
2026-11-20 17:20:54 -05:00
committed by GitHub
parent 765c4dae3c
commit 1b4e540ae6
3 changed files with 39 additions and 13 deletions

View File

@@ -735,6 +735,8 @@ class IotDevice(Device):
# and have even less room right after a state change.
if self.config.connection_type.encryption_type is DeviceEncryptionType.Klap:
return 2048
if self.device_type in {DeviceType.Bulb, DeviceType.LightStrip}:
return 4096
return 16 * 1024
@property