mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 10:59:40 +00:00
Move device info validation to device registry (#96465)
* Move device info validation to device registry * Don't move DeviceInfo * Fix type annotation * Don't block adding device for unknown config entry * Fix test * Remove use of locals() * Improve error message
This commit is contained in:
@@ -1830,6 +1830,7 @@ async def test_device_name_defaulting_config_entry(
|
||||
|
||||
platform = MockPlatform(async_setup_entry=async_setup_entry)
|
||||
config_entry = MockConfigEntry(title=config_entry_title, entry_id="super-mock-id")
|
||||
config_entry.add_to_hass(hass)
|
||||
entity_platform = MockEntityPlatform(
|
||||
hass, platform_name=config_entry.domain, platform=platform
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user