core/homeassistant/components/worldclock/const.py

12 lines
242 B
Python

"""Constants for world clock component."""
from homeassistant.const import Platform
DOMAIN = "worldclock"
PLATFORMS = [Platform.SENSOR]
CONF_TIME_FORMAT = "time_format"
DEFAULT_NAME = "Worldclock Sensor"
DEFAULT_TIME_STR_FORMAT = "%H:%M"