mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
Move overlapping pylint rules to ruff, disable mypy overlap (#94359)
This commit is contained in:
@@ -16,7 +16,6 @@ async def test_hit(hass: HomeAssistant) -> None:
|
||||
def _refresh():
|
||||
nonlocal refresh_called
|
||||
refresh_called = True
|
||||
return
|
||||
|
||||
rate_limiter = ratelimit.KeyedRateLimit(hass)
|
||||
rate_limiter.async_triggered("key1", dt_util.utcnow())
|
||||
@@ -53,7 +52,6 @@ async def test_miss(hass: HomeAssistant) -> None:
|
||||
def _refresh():
|
||||
nonlocal refresh_called
|
||||
refresh_called = True
|
||||
return
|
||||
|
||||
rate_limiter = ratelimit.KeyedRateLimit(hass)
|
||||
assert (
|
||||
@@ -85,7 +83,6 @@ async def test_no_limit(hass: HomeAssistant) -> None:
|
||||
def _refresh():
|
||||
nonlocal refresh_called
|
||||
refresh_called = True
|
||||
return
|
||||
|
||||
rate_limiter = ratelimit.KeyedRateLimit(hass)
|
||||
rate_limiter.async_triggered("key1", dt_util.utcnow())
|
||||
|
||||
Reference in New Issue
Block a user