mirror of
https://github.com/home-assistant/core.git
synced 2026-12-02 19:57:03 -04:00
Construct DeviceInfo with device info fields only in airq tests (#185269)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
5f46b04201
commit
486535d87d
@@ -81,7 +81,14 @@ async def test_logging_in_coordinator_subsequent_update_data(
|
||||
"""
|
||||
caplog.set_level(logging.DEBUG)
|
||||
coordinator = AirQCoordinator(hass, MOCKED_ENTRY)
|
||||
coordinator.device_info.update(DeviceInfo(**TEST_DEVICE_INFO))
|
||||
coordinator.device_info.update(
|
||||
DeviceInfo(
|
||||
name=TEST_DEVICE_INFO["name"],
|
||||
model=TEST_DEVICE_INFO["model"],
|
||||
sw_version=TEST_DEVICE_INFO["sw_version"],
|
||||
hw_version=TEST_DEVICE_INFO["hw_version"],
|
||||
)
|
||||
)
|
||||
|
||||
await coordinator._async_update_data()
|
||||
# check that the name _is not_ missing
|
||||
|
||||
Reference in New Issue
Block a user