Update Ruff to be used in tests (#943)

* Update Ruff config

* Rerun ruff
This commit is contained in:
Bas Nijholt 2024-03-03 15:09:18 -08:00 • committed by GitHub
commit f2a124c30f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 196 additions and 101 deletions

View file

@ -14,7 +14,7 @@ async def test_setup_with_config(hass):
config = {
adaptive_lighting.DOMAIN: {
adaptive_lighting.CONF_NAME: DEFAULT_NAME,
}
},
}
assert await async_setup_component(hass, adaptive_lighting.DOMAIN, config)
assert adaptive_lighting.DOMAIN in hass.data
@ -22,7 +22,6 @@ async def test_setup_with_config(hass):
async def test_successful_config_entry(hass):
"""Test that Adaptive Lighting is configured successfully."""
entry = MockConfigEntry(
domain=adaptive_lighting.DOMAIN,
data={CONF_NAME: DEFAULT_NAME},