From 5f1a7f473579f96cb3d9e693780c5b2176494d4f Mon Sep 17 00:00:00 2001 From: Jordan Harvey Date: Mon, 31 Aug 2026 16:16:45 +0100 Subject: [PATCH] Bump pyprobeplus to 2.1.0 (#180921) --- homeassistant/components/probe_plus/manifest.json | 2 +- homeassistant/components/probe_plus/sensor.py | 8 ++++---- requirements_all.txt | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/homeassistant/components/probe_plus/manifest.json b/homeassistant/components/probe_plus/manifest.json index 98a057c68448..dfdb0d06775b 100644 --- a/homeassistant/components/probe_plus/manifest.json +++ b/homeassistant/components/probe_plus/manifest.json @@ -15,5 +15,5 @@ "integration_type": "device", "iot_class": "local_push", "quality_scale": "bronze", - "requirements": ["pyprobeplus==1.1.2"] + "requirements": ["pyprobeplus==2.1.0"] } diff --git a/homeassistant/components/probe_plus/sensor.py b/homeassistant/components/probe_plus/sensor.py index 16b5c3184901..a577d9626b36 100644 --- a/homeassistant/components/probe_plus/sensor.py +++ b/homeassistant/components/probe_plus/sensor.py @@ -39,14 +39,14 @@ SENSOR_DESCRIPTIONS: tuple[ProbePlusSensorEntityDescription, ...] = ( key="probe_temperature", state_class=SensorStateClass.MEASUREMENT, native_unit_of_measurement=UnitOfTemperature.CELSIUS, - value_fn=lambda device: device.device_state.probe_temperature, + value_fn=lambda device: device.device_state.probe.temperature, device_class=SensorDeviceClass.TEMPERATURE, ), ProbePlusSensorEntityDescription( key="probe_battery", state_class=SensorStateClass.MEASUREMENT, native_unit_of_measurement=PERCENTAGE, - value_fn=lambda device: device.device_state.probe_battery, + value_fn=lambda device: device.device_state.probe.battery, device_class=SensorDeviceClass.BATTERY, ), ProbePlusSensorEntityDescription( @@ -62,7 +62,7 @@ SENSOR_DESCRIPTIONS: tuple[ProbePlusSensorEntityDescription, ...] = ( state_class=SensorStateClass.MEASUREMENT, native_unit_of_measurement=SIGNAL_STRENGTH_DECIBELS_MILLIWATT, entity_category=EntityCategory.DIAGNOSTIC, - value_fn=lambda device: device.device_state.probe_rssi, + value_fn=lambda device: device.device_state.probe.rssi, entity_registry_enabled_default=False, ), ProbePlusSensorEntityDescription( @@ -80,7 +80,7 @@ SENSOR_DESCRIPTIONS: tuple[ProbePlusSensorEntityDescription, ...] = ( native_unit_of_measurement=UnitOfElectricPotential.VOLT, entity_category=EntityCategory.DIAGNOSTIC, device_class=SensorDeviceClass.VOLTAGE, - value_fn=lambda device: device.device_state.probe_voltage, + value_fn=lambda device: device.device_state.probe.voltage, entity_registry_enabled_default=False, ), ) diff --git a/requirements_all.txt b/requirements_all.txt index f2585fd0c0be..f917001f5855 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -2528,7 +2528,7 @@ pypoint==3.0.0 pyportainer==1.0.45 # homeassistant.components.probe_plus -pyprobeplus==1.1.2 +pyprobeplus==2.1.0 # homeassistant.components.profiler pyprof2calltree==1.4.5