diff --git a/homeassistant/components/peblar/manifest.json b/homeassistant/components/peblar/manifest.json index 76e228351e5..2c3e73ba76e 100644 --- a/homeassistant/components/peblar/manifest.json +++ b/homeassistant/components/peblar/manifest.json @@ -7,6 +7,6 @@ "integration_type": "device", "iot_class": "local_polling", "quality_scale": "platinum", - "requirements": ["peblar==0.3.1"], + "requirements": ["peblar==0.3.2"], "zeroconf": [{ "type": "_http._tcp.local.", "name": "pblr-*" }] } diff --git a/homeassistant/components/peblar/update.py b/homeassistant/components/peblar/update.py index 67ce30a89a6..29dfbfdcd47 100644 --- a/homeassistant/components/peblar/update.py +++ b/homeassistant/components/peblar/update.py @@ -27,8 +27,9 @@ PARALLEL_UPDATES = 1 class PeblarUpdateEntityDescription(UpdateEntityDescription): """Describe an Peblar update entity.""" - installed_fn: Callable[[PeblarVersionInformation], str | None] available_fn: Callable[[PeblarVersionInformation], str | None] + has_fn: Callable[[PeblarVersionInformation], bool] = lambda _: True + installed_fn: Callable[[PeblarVersionInformation], str | None] DESCRIPTIONS: tuple[PeblarUpdateEntityDescription, ...] = ( @@ -41,8 +42,9 @@ DESCRIPTIONS: tuple[PeblarUpdateEntityDescription, ...] = ( PeblarUpdateEntityDescription( key="customization", translation_key="customization", - installed_fn=lambda x: x.current.customization, available_fn=lambda x: x.available.customization, + has_fn=lambda x: x.current.customization is not None, + installed_fn=lambda x: x.current.customization, ), ) diff --git a/requirements_all.txt b/requirements_all.txt index 75791a57347..49e407b212e 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -1615,7 +1615,7 @@ panasonic-viera==0.4.2 pdunehd==1.3.2 # homeassistant.components.peblar -peblar==0.3.1 +peblar==0.3.2 # homeassistant.components.peco peco==0.0.30 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index f2d8bae3512..77530c77f05 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -1342,7 +1342,7 @@ panasonic-viera==0.4.2 pdunehd==1.3.2 # homeassistant.components.peblar -peblar==0.3.1 +peblar==0.3.2 # homeassistant.components.peco peco==0.0.30