mirror of
https://github.com/home-assistant/core.git
synced 2026-10-07 23:09:19 -04:00
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:
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:
|
||||
|
||||
Reference in New Issue
Block a user