mirror of
https://github.com/home-assistant/core.git
synced 2025-11-14 05:20:17 +00:00
Add ruff rules PIE790, PIE794, PIE807, PIE810 (#113617)
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user