Skip to content

Commit cd7c6d6

Browse files
Battery plus restore (#1826)
* Add restore sensor to battery plus * Bump HA version
1 parent ac08c24 commit cd7c6d6

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

custom_components/battery_notes/const.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
LOGGER: Logger = getLogger(__package__)
1414

15-
MIN_HA_VERSION = "2024.2"
15+
MIN_HA_VERSION = "2024.4"
1616

1717
manifestfile = Path(__file__).parent / "manifest.json"
1818
with open(file=manifestfile, encoding="UTF-8") as json_file:

custom_components/battery_notes/sensor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ async def async_setup_platform(
259259

260260

261261
class BatteryNotesBatteryPlusSensor(
262-
SensorEntity, CoordinatorEntity[BatteryNotesCoordinator]
262+
RestoreSensor, SensorEntity, CoordinatorEntity[BatteryNotesCoordinator]
263263
):
264264
"""Represents a battery plus type sensor."""
265265

hacs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "Battery Notes",
33
"filename": "battery_notes.zip",
44
"hide_default_branch": true,
5-
"homeassistant": "2024.2.0",
5+
"homeassistant": "2024.4.0",
66
"render_readme": true,
77
"zip_release": true,
88
"persistent_directory": "data"

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
colorlog>=6.8.2,<7.0
2-
homeassistant==2024.2.0
2+
homeassistant==2024.4.0
33
ruff>=0.3.2,<0.5

0 commit comments

Comments
 (0)