mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 17:57:11 +00:00
Set Ruff RUF001-003 to ignore (#115477)
This commit is contained in:
parent
f16ee2ded9
commit
d74be6d5fe
@ -33,7 +33,7 @@ class HVACMode(StrEnum):
|
||||
# Device is in Dry/Humidity mode
|
||||
DRY = "dry"
|
||||
|
||||
# Only the fan is on, not fan and another mode like cool
|
||||
# Only the fan is on, not fan and another mode like cool
|
||||
FAN_ONLY = "fan_only"
|
||||
|
||||
|
||||
|
@ -750,6 +750,9 @@ ignore = [
|
||||
"PT011", # pytest.raises({exception}) is too broad, set the `match` parameter or use a more specific exception
|
||||
"PT012", # `pytest.raises()` block should contain a single simple statement
|
||||
"PT018", # Assertion should be broken down into multiple parts
|
||||
"RUF001", # String contains ambiguous unicode character.
|
||||
"RUF002", # Docstring contains ambiguous unicode character.
|
||||
"RUF003", # Comment contains ambiguous unicode character.
|
||||
"SIM102", # Use a single if statement instead of nested if statements
|
||||
"SIM108", # Use ternary operator {contents} instead of if-else-block
|
||||
"SIM115", # Use context handler for opening files
|
||||
|
@ -1115,7 +1115,7 @@ async def test_flux_with_mired(
|
||||
hass: HomeAssistant,
|
||||
mock_light_entities: list[MockLight],
|
||||
) -> None:
|
||||
"""Test the flux switch´s mode mired."""
|
||||
"""Test the flux switch's mode mired."""
|
||||
setup_test_component_platform(hass, light.DOMAIN, mock_light_entities)
|
||||
|
||||
assert await async_setup_component(
|
||||
@ -1176,7 +1176,7 @@ async def test_flux_with_rgb(
|
||||
hass: HomeAssistant,
|
||||
mock_light_entities: list[MockLight],
|
||||
) -> None:
|
||||
"""Test the flux switch´s mode rgb."""
|
||||
"""Test the flux switch's mode rgb."""
|
||||
setup_test_component_platform(hass, light.DOMAIN, mock_light_entities)
|
||||
|
||||
assert await async_setup_component(
|
||||
|
Loading…
x
Reference in New Issue
Block a user