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

@@ -539,8 +539,3 @@ class IotBulb(IotDevice):
return await self._query_helper(
"smartlife.iot.common.system", "set_dev_alias", {"alias": alias}
)
@property
def max_device_response_size(self) -> int:
"""Returns the maximum response size the device can safely construct."""
return 4096