Pass hw_version to the DeviceInfo constructor in aprilaire (#183576)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
epenet
2026-09-29 12:54:58 +02:00
committed by GitHub
co-authored by Claude Opus 5.5
parent fdc2a83e6c
commit 1bca7da32e
@@ -201,14 +201,13 @@ class AprilaireCoordinator(BaseDataUpdateCoordinatorProtocol):
connections={(dr.CONNECTION_NETWORK_MAC, data[Attribute.MAC_ADDRESS])},
name=self.create_device_name(data),
manufacturer="Aprilaire",
hw_version=self.get_hw_version(data),
)
model_number = data.get(Attribute.MODEL_NUMBER)
if model_number is not None:
device_info["model"] = MODELS.get(model_number, f"Unknown ({model_number})")
device_info["hw_version"] = self.get_hw_version(data)
firmware_major_revision = data.get(Attribute.FIRMWARE_MAJOR_REVISION)
firmware_minor_revision = data.get(Attribute.FIRMWARE_MINOR_REVISION)
if firmware_major_revision is not None: