mirror of
https://github.com/Electric-Special/ha-core.git
synced 2026-03-21 06:05:26 +01:00
Use StrEnum in modbus (#162388)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
"""Constants used in modbus integration."""
|
||||
|
||||
from enum import Enum
|
||||
from enum import StrEnum
|
||||
import logging
|
||||
|
||||
from homeassistant.const import (
|
||||
@@ -116,7 +116,7 @@ ATTR_SLAVE = "slave"
|
||||
ATTR_VALUE = "value"
|
||||
|
||||
|
||||
class DataType(str, Enum):
|
||||
class DataType(StrEnum):
|
||||
"""Data types used by sensor etc."""
|
||||
|
||||
CUSTOM = "custom"
|
||||
|
||||
Reference in New Issue
Block a user