mirror of
https://github.com/home-assistant/core.git
synced 2026-02-06 15:25:33 +01:00
Use StrEnum in easyenergy (#162386)
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from datetime import date, datetime
|
||||
from enum import Enum
|
||||
from enum import StrEnum
|
||||
from functools import partial
|
||||
from typing import Final
|
||||
|
||||
@@ -47,7 +47,7 @@ SERVICE_SCHEMA: Final = vol.Schema(
|
||||
)
|
||||
|
||||
|
||||
class PriceType(str, Enum):
|
||||
class PriceType(StrEnum):
|
||||
"""Type of price."""
|
||||
|
||||
ENERGY_USAGE = "energy_usage"
|
||||
|
||||
Reference in New Issue
Block a user