mirror of
https://github.com/home-assistant/core.git
synced 2026-09-22 17:52:44 +01:00
19 lines
347 B
Python
19 lines
347 B
Python
"""Constants for the Switch integration."""
|
|
|
|
from enum import StrEnum
|
|
from typing import Final
|
|
|
|
import probatio
|
|
|
|
DOMAIN: Final = "switch"
|
|
|
|
|
|
class SwitchDeviceClass(StrEnum):
|
|
"""Device class for switches."""
|
|
|
|
OUTLET = "outlet"
|
|
SWITCH = "switch"
|
|
|
|
|
|
DEVICE_CLASSES_SCHEMA = probatio.All(probatio.Lower, probatio.Coerce(SwitchDeviceClass))
|