Adjust Home Connect max executions parameters (#143509)

Adjust max executions parameters to ensure that 1000 calls per day are not reached
This commit is contained in:
J. Diego Rodríguez Royo 2025-04-23 15:52:53 +02:00 committed by GitHub
parent 839eb0fe14
commit 1bfd585f3c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -47,8 +47,8 @@ from .utils import get_dict_from_home_connect_error
_LOGGER = logging.getLogger(__name__)
MAX_EXECUTIONS_TIME_WINDOW = 15 * 60 # 15 minutes
MAX_EXECUTIONS = 5
MAX_EXECUTIONS_TIME_WINDOW = 60 * 60 # 1 hour
MAX_EXECUTIONS = 8
type HomeConnectConfigEntry = ConfigEntry[HomeConnectCoordinator]

View File

@ -651,7 +651,7 @@ async def test_coordinator_disabling_updates_for_appliance(
EventType.CONNECTED,
data=ArrayOfEvents([]),
)
for _ in range(5)
for _ in range(8)
]
)
await hass.async_block_till_done()
@ -744,7 +744,7 @@ async def test_coordinator_disabling_updates_for_appliance_is_gone_after_entry_r
EventType.CONNECTED,
data=ArrayOfEvents([]),
)
for _ in range(5)
for _ in range(8)
]
)
await hass.async_block_till_done()