1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Add primary_config_entry attribute to device registry entries (#119959)

Co-authored-by: Franck Nijhof <git@frenck.dev>
Co-authored-by: Robert Resch <robert@resch.dev>
This commit is contained in:
Erik Montnemery
2024-06-26 12:26:24 +02:00
committed by GitHub
parent f55ddfecf4
commit 9bbeb5d608
82 changed files with 1001 additions and 105 deletions

View File

@@ -1187,6 +1187,7 @@ async def test_device_info_called(
assert device.manufacturer == "test-manuf"
assert device.model == "test-model"
assert device.name == "test-name"
assert device.primary_config_entry == config_entry.entry_id
assert device.suggested_area == "Heliport"
assert device.sw_version == "test-sw"
assert device.hw_version == "test-hw"