Home Assistant Unofficial Reference 2024.12.1
const.py
Go to the documentation of this file.
1 """Consts for the Ukraine Alarm."""
2 
3 from __future__ import annotations
4 
5 from homeassistant.const import Platform
6 
7 DOMAIN = "ukraine_alarm"
8 ATTRIBUTION = "Data provided by Ukraine Alarm"
9 MANUFACTURER = "Ukraine Alarm"
10 ALERT_TYPE_UNKNOWN = "UNKNOWN"
11 ALERT_TYPE_AIR = "AIR"
12 ALERT_TYPE_ARTILLERY = "ARTILLERY"
13 ALERT_TYPE_URBAN_FIGHTS = "URBAN_FIGHTS"
14 ALERT_TYPE_CHEMICAL = "CHEMICAL"
15 ALERT_TYPE_NUCLEAR = "NUCLEAR"
16 ALERT_TYPES = {
17  ALERT_TYPE_UNKNOWN,
18  ALERT_TYPE_AIR,
19  ALERT_TYPE_ARTILLERY,
20  ALERT_TYPE_URBAN_FIGHTS,
21  ALERT_TYPE_CHEMICAL,
22  ALERT_TYPE_NUCLEAR,
23 }
24 PLATFORMS = [Platform.BINARY_SENSOR]