Skip to content

Commit

Permalink
Merge pull request #606 from MTrab:Fix-bug-for-backports-enum-str
Browse files Browse the repository at this point in the history
Switch to enum.StrEnum
  • Loading branch information
MTrab authored May 6, 2024
2 parents bf2b3cc + 1180944 commit 490a1f2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions custom_components/landroid_cloud/utils/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,16 @@
# pylint: disable=unused-argument,relative-beyond-top-level
from __future__ import annotations

import enum
import logging

from homeassistant.backports.enum import StrEnum

try:
from ..api import LandroidAPI
except: # pylint: disable=bare-except
pass


class LoggerType(StrEnum):
class LoggerType(enum.StrEnum):
"""Defines the available logger types."""

NONE = "None"
Expand All @@ -38,7 +37,7 @@ class LoggerType(StrEnum):
DEVELOP = "DEVELOPER INFO"


class LogLevel(StrEnum):
class LogLevel(enum.StrEnum):
"""Define loglevels."""

CRITICAL = "critical"
Expand Down

0 comments on commit 490a1f2

Please sign in to comment.