Skip to content

Commit

Permalink
Merge pull request #66 from elad-bar/fix-ha-v2024-05-x-issues
Browse files Browse the repository at this point in the history
Fix StrEnum warning
  • Loading branch information
elad-bar authored May 2, 2024
2 parents b11c780 + 9992a3e commit 5dd7b05
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## v3.0.8

- Fix warning - StrEnum is a deprecated alias which will be removed in HA Core 2025.5. Use enum.StrEnum instead

## v3.0.7

_Minimum HA Version: 2024.1.0b0_
Expand Down
3 changes: 1 addition & 2 deletions custom_components/shinobi/common/connectivity_status.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from enum import StrEnum
import logging

from homeassistant.backports.enum import StrEnum


class ConnectivityStatus(StrEnum):
NotConnected = "Not connected"
Expand Down
2 changes: 1 addition & 1 deletion custom_components/shinobi/common/enums.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from homeassistant.backports.enum import StrEnum
from enum import StrEnum


class MonitorMode(StrEnum):
Expand Down
2 changes: 1 addition & 1 deletion custom_components/shinobi/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
"iot_class": "local_polling",
"issue_tracker": "https://github.com/elad-bar/ha-shinobi/issues",
"requirements": [],
"version": "3.0.7"
"version": "3.0.8"
}

0 comments on commit 5dd7b05

Please sign in to comment.