Home Assistant Unofficial Reference 2024.12.1
const.py
Go to the documentation of this file.
1 """Constants for world clock component."""
2 
3 from homeassistant.const import Platform
4 
5 DOMAIN = "worldclock"
6 PLATFORMS = [Platform.SENSOR]
7 
8 CONF_TIME_FORMAT = "time_format"
9 
10 DEFAULT_NAME = "Worldclock Sensor"
11 DEFAULT_TIME_STR_FORMAT = "%H:%M"