Add ruff rules PIE790, PIE794, PIE807, PIE810 (#113617)

This commit is contained in:
Sid
2024-03-16 22:04:58 +01:00
committed by GitHub
parent cbe2a5883b
commit 0b9c9aff62
25 changed files with 29 additions and 47 deletions

View File

@@ -1297,7 +1297,7 @@ async def test_homekit_reset_accessories_not_bridged(
acc_mock = MagicMock()
acc_mock.entity_id = entity_id
acc_mock.stop = AsyncMock()
acc_mock.to_HAP = lambda: {}
acc_mock.to_HAP = dict
aid = homekit.aid_storage.get_or_allocate_aid_for_entity_id(entity_id)
homekit.bridge.accessories = {aid: acc_mock}