Omit Peblar update entities for most white label devices (#136374)

This commit is contained in:
Franck Nijhof 2025-01-24 11:33:25 +01:00 committed by GitHub
parent 4e89c2322b
commit 20e936c7b9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -37,14 +37,14 @@ DESCRIPTIONS: tuple[PeblarUpdateEntityDescription, ...] = (
key="firmware",
device_class=UpdateDeviceClass.FIRMWARE,
installed_fn=lambda x: x.current.firmware,
has_fn=lambda x: x.current.firmware is not None,
has_fn=lambda x: x.available.firmware is not None,
available_fn=lambda x: x.available.firmware,
),
PeblarUpdateEntityDescription(
key="customization",
translation_key="customization",
available_fn=lambda x: x.available.customization,
has_fn=lambda x: x.current.customization is not None,
has_fn=lambda x: x.available.customization is not None,
installed_fn=lambda x: x.current.customization,
),
)