Skip to content

Commit 5e3512d

Browse files
authored
Revert to str repr (#881)
* Revert to str repr * fix linting * fix linting
1 parent 29099a5 commit 5e3512d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

custom_components/ocpp/enums.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ class HAChargerSession(str, Enum):
6363
class Profiles(IntFlag):
6464
"""Flags to indicate supported feature profiles."""
6565

66+
__str__ = Enum.__str__
67+
6668
CORE = auto() # Core
6769
FW = auto() # FirmwareManagement
6870
SMART = auto() # SmartCharging

0 commit comments

Comments
 (0)