From cd7c6d625f2277313430554b2ae716900b13b2c0 Mon Sep 17 00:00:00 2001 From: Andrew Jackson Date: Mon, 1 Jul 2024 09:45:59 +0100 Subject: [PATCH] Battery plus restore (#1826) * Add restore sensor to battery plus * Bump HA version --- custom_components/battery_notes/const.py | 2 +- custom_components/battery_notes/sensor.py | 2 +- hacs.json | 2 +- requirements.txt | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/custom_components/battery_notes/const.py b/custom_components/battery_notes/const.py index dbef9810d..226272a77 100644 --- a/custom_components/battery_notes/const.py +++ b/custom_components/battery_notes/const.py @@ -12,7 +12,7 @@ LOGGER: Logger = getLogger(__package__) -MIN_HA_VERSION = "2024.2" +MIN_HA_VERSION = "2024.4" manifestfile = Path(__file__).parent / "manifest.json" with open(file=manifestfile, encoding="UTF-8") as json_file: diff --git a/custom_components/battery_notes/sensor.py b/custom_components/battery_notes/sensor.py index d5b557b57..06351f149 100644 --- a/custom_components/battery_notes/sensor.py +++ b/custom_components/battery_notes/sensor.py @@ -259,7 +259,7 @@ async def async_setup_platform( class BatteryNotesBatteryPlusSensor( - SensorEntity, CoordinatorEntity[BatteryNotesCoordinator] + RestoreSensor, SensorEntity, CoordinatorEntity[BatteryNotesCoordinator] ): """Represents a battery plus type sensor.""" diff --git a/hacs.json b/hacs.json index 184560894..4308d5f89 100644 --- a/hacs.json +++ b/hacs.json @@ -2,7 +2,7 @@ "name": "Battery Notes", "filename": "battery_notes.zip", "hide_default_branch": true, - "homeassistant": "2024.2.0", + "homeassistant": "2024.4.0", "render_readme": true, "zip_release": true, "persistent_directory": "data" diff --git a/requirements.txt b/requirements.txt index 73adf614c..fe5721b90 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ colorlog>=6.8.2,<7.0 -homeassistant==2024.2.0 +homeassistant==2024.4.0 ruff>=0.3.2,<0.5 \ No newline at end of file