2022-05-08 15:22:20 +00:00
|
|
|
"""Consts for the Ukraine Alarm."""
|
|
|
|
from __future__ import annotations
|
|
|
|
|
|
|
|
from homeassistant.const import Platform
|
|
|
|
|
|
|
|
DOMAIN = "ukraine_alarm"
|
|
|
|
ATTRIBUTION = "Data provided by Ukraine Alarm"
|
|
|
|
MANUFACTURER = "Ukraine Alarm"
|
|
|
|
ALERT_TYPE_UNKNOWN = "UNKNOWN"
|
|
|
|
ALERT_TYPE_AIR = "AIR"
|
|
|
|
ALERT_TYPE_ARTILLERY = "ARTILLERY"
|
|
|
|
ALERT_TYPE_URBAN_FIGHTS = "URBAN_FIGHTS"
|
2022-08-03 20:19:10 +00:00
|
|
|
ALERT_TYPE_CHEMICAL = "CHEMICAL"
|
|
|
|
ALERT_TYPE_NUCLEAR = "NUCLEAR"
|
2022-05-08 15:22:20 +00:00
|
|
|
ALERT_TYPES = {
|
|
|
|
ALERT_TYPE_UNKNOWN,
|
|
|
|
ALERT_TYPE_AIR,
|
|
|
|
ALERT_TYPE_ARTILLERY,
|
|
|
|
ALERT_TYPE_URBAN_FIGHTS,
|
2022-08-03 20:19:10 +00:00
|
|
|
ALERT_TYPE_CHEMICAL,
|
|
|
|
ALERT_TYPE_NUCLEAR,
|
2022-05-08 15:22:20 +00:00
|
|
|
}
|
|
|
|
PLATFORMS = [Platform.BINARY_SENSOR]
|