mirror of
https://github.com/home-assistant/core.git
synced 2025-11-06 17:40:11 +00:00
Bump ruff to 0.9.1 (#135197)
This commit is contained in:
committed by
GitHub
parent
2b51ab1c75
commit
8db63adc11
@@ -159,9 +159,9 @@ async def test_duplicate_mac_dev_id(mock_warning, hass: HomeAssistant) -> None:
|
||||
]
|
||||
legacy.DeviceTracker(hass, False, True, {}, devices)
|
||||
_LOGGER.debug(mock_warning.call_args_list)
|
||||
assert (
|
||||
mock_warning.call_count == 1
|
||||
), "The only warning call should be duplicates (check DEBUG)"
|
||||
assert mock_warning.call_count == 1, (
|
||||
"The only warning call should be duplicates (check DEBUG)"
|
||||
)
|
||||
args, _ = mock_warning.call_args
|
||||
assert "Duplicate device MAC" in args[0], "Duplicate MAC warning expected"
|
||||
|
||||
@@ -177,9 +177,9 @@ async def test_duplicate_mac_dev_id(mock_warning, hass: HomeAssistant) -> None:
|
||||
legacy.DeviceTracker(hass, False, True, {}, devices)
|
||||
|
||||
_LOGGER.debug(mock_warning.call_args_list)
|
||||
assert (
|
||||
mock_warning.call_count == 1
|
||||
), "The only warning call should be duplicates (check DEBUG)"
|
||||
assert mock_warning.call_count == 1, (
|
||||
"The only warning call should be duplicates (check DEBUG)"
|
||||
)
|
||||
args, _ = mock_warning.call_args
|
||||
assert "Duplicate device IDs" in args[0], "Duplicate device IDs warning expected"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user