Skip to content

Commit

Permalink
Battery plus restore (#1826)
Browse files Browse the repository at this point in the history
* Add restore sensor to battery plus

* Bump HA version
  • Loading branch information
andrew-codechimp authored Jul 1, 2024
1 parent ac08c24 commit cd7c6d6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion custom_components/battery_notes/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion custom_components/battery_notes/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ async def async_setup_platform(


class BatteryNotesBatteryPlusSensor(
SensorEntity, CoordinatorEntity[BatteryNotesCoordinator]
RestoreSensor, SensorEntity, CoordinatorEntity[BatteryNotesCoordinator]
):
"""Represents a battery plus type sensor."""

Expand Down
2 changes: 1 addition & 1 deletion hacs.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
colorlog>=6.8.2,<7.0
homeassistant==2024.2.0
homeassistant==2024.4.0
ruff>=0.3.2,<0.5

0 comments on commit cd7c6d6

Please sign in to comment.