mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 05:37:44 +00:00
Omit Peblar update entities for most white label devices (#136374)
This commit is contained in:
parent
4e89c2322b
commit
20e936c7b9
@ -37,14 +37,14 @@ DESCRIPTIONS: tuple[PeblarUpdateEntityDescription, ...] = (
|
|||||||
key="firmware",
|
key="firmware",
|
||||||
device_class=UpdateDeviceClass.FIRMWARE,
|
device_class=UpdateDeviceClass.FIRMWARE,
|
||||||
installed_fn=lambda x: x.current.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,
|
available_fn=lambda x: x.available.firmware,
|
||||||
),
|
),
|
||||||
PeblarUpdateEntityDescription(
|
PeblarUpdateEntityDescription(
|
||||||
key="customization",
|
key="customization",
|
||||||
translation_key="customization",
|
translation_key="customization",
|
||||||
available_fn=lambda x: x.available.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,
|
installed_fn=lambda x: x.current.customization,
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user