From 5e9eae14fca2789cc694525adc44da8236502bca Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Micha=C5=82=20Jaworski?= <swistakm@gmail.com>
Date: Wed, 5 Jun 2024 12:11:49 +0200
Subject: [PATCH] Bump blebox-uniapi fom 2.2.2 to 2.4.2 (#118836)

* blebox: udpdate version in manifest and add new sensor key mapping

* blebox: add more sensor types

* blebox: use blebox_uniapi==2.4.1

* blebox: use blebox_uniapi==2.4.2

* blebox: update requirements_all.txt

* blebox: revert introduction of illuminance and power meter sensors set
---
 homeassistant/components/blebox/manifest.json | 2 +-
 homeassistant/components/blebox/sensor.py     | 4 ++--
 requirements_all.txt                          | 2 +-
 requirements_test_all.txt                     | 2 +-
 4 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/homeassistant/components/blebox/manifest.json b/homeassistant/components/blebox/manifest.json
index 4b0a6403f67..a2c6495cc56 100644
--- a/homeassistant/components/blebox/manifest.json
+++ b/homeassistant/components/blebox/manifest.json
@@ -6,6 +6,6 @@
   "documentation": "https://www.home-assistant.io/integrations/blebox",
   "iot_class": "local_polling",
   "loggers": ["blebox_uniapi"],
-  "requirements": ["blebox-uniapi==2.2.2"],
+  "requirements": ["blebox-uniapi==2.4.2"],
   "zeroconf": ["_bbxsrv._tcp.local."]
 }
diff --git a/homeassistant/components/blebox/sensor.py b/homeassistant/components/blebox/sensor.py
index dbdf034faee..5aff62eb11e 100644
--- a/homeassistant/components/blebox/sensor.py
+++ b/homeassistant/components/blebox/sensor.py
@@ -45,7 +45,7 @@ SENSOR_TYPES = (
         native_unit_of_measurement=UnitOfTemperature.CELSIUS,
     ),
     SensorEntityDescription(
-        key="powerMeasurement",
+        key="powerConsumption",
         device_class=SensorDeviceClass.ENERGY,
         native_unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR,
         state_class=SensorStateClass.TOTAL,
@@ -56,7 +56,7 @@ SENSOR_TYPES = (
         native_unit_of_measurement=PERCENTAGE,
     ),
     SensorEntityDescription(
-        key="wind_speed",
+        key="wind",
         device_class=SensorDeviceClass.WIND_SPEED,
         native_unit_of_measurement=UnitOfSpeed.METERS_PER_SECOND,
     ),
diff --git a/requirements_all.txt b/requirements_all.txt
index 1c55d0536d7..e1a7e7c766f 100644
--- a/requirements_all.txt
+++ b/requirements_all.txt
@@ -566,7 +566,7 @@ bleak-retry-connector==3.5.0
 bleak==0.22.1
 
 # homeassistant.components.blebox
-blebox-uniapi==2.2.2
+blebox-uniapi==2.4.2
 
 # homeassistant.components.blink
 blinkpy==0.22.6
diff --git a/requirements_test_all.txt b/requirements_test_all.txt
index b6039ed2ea9..47e0ecf684f 100644
--- a/requirements_test_all.txt
+++ b/requirements_test_all.txt
@@ -488,7 +488,7 @@ bleak-retry-connector==3.5.0
 bleak==0.22.1
 
 # homeassistant.components.blebox
-blebox-uniapi==2.2.2
+blebox-uniapi==2.4.2
 
 # homeassistant.components.blink
 blinkpy==0.22.6
-- 
GitLab