mirror of
https://github.com/home-assistant/core.git
synced 2026-11-03 04:02:41 -04:00
@@ -207,7 +207,7 @@ async def test_button_press(
|
||||
[
|
||||
(
|
||||
HTTPStatus.TOO_MANY_REQUESTS,
|
||||
"Currently rate limited",
|
||||
"Rate limit exceeded, try again later",
|
||||
ServiceValidationError,
|
||||
),
|
||||
(
|
||||
@@ -217,7 +217,7 @@ async def test_button_press(
|
||||
),
|
||||
(
|
||||
HTTPStatus.UNAUTHORIZED,
|
||||
"Unable to carry out this action",
|
||||
"Unable to complete action, the required conditions are not met",
|
||||
ServiceValidationError,
|
||||
),
|
||||
],
|
||||
|
||||
@@ -165,4 +165,4 @@ async def test_coordinator_rate_limited(
|
||||
async_fire_time_changed(hass)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
assert "Currently rate limited, skipping update" in caplog.text
|
||||
assert "Rate limit exceeded, will try again later" in caplog.text
|
||||
|
||||
Reference in New Issue
Block a user