mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
parent
ae29ddee74
commit
d453f3809c
@ -12,7 +12,35 @@ from homeassistant.core import HomeAssistant
|
||||
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||
from homeassistant.helpers.update_coordinator import CoordinatorEntity
|
||||
|
||||
from .const import DOMAIN, FAA_BINARY_SENSORS
|
||||
from .const import DOMAIN
|
||||
|
||||
FAA_BINARY_SENSORS: tuple[BinarySensorEntityDescription, ...] = (
|
||||
BinarySensorEntityDescription(
|
||||
key="GROUND_DELAY",
|
||||
name="Ground Delay",
|
||||
icon="mdi:airport",
|
||||
),
|
||||
BinarySensorEntityDescription(
|
||||
key="GROUND_STOP",
|
||||
name="Ground Stop",
|
||||
icon="mdi:airport",
|
||||
),
|
||||
BinarySensorEntityDescription(
|
||||
key="DEPART_DELAY",
|
||||
name="Departure Delay",
|
||||
icon="mdi:airplane-takeoff",
|
||||
),
|
||||
BinarySensorEntityDescription(
|
||||
key="ARRIVE_DELAY",
|
||||
name="Arrival Delay",
|
||||
icon="mdi:airplane-landing",
|
||||
),
|
||||
BinarySensorEntityDescription(
|
||||
key="CLOSURE",
|
||||
name="Closure",
|
||||
icon="mdi:airplane:off",
|
||||
),
|
||||
)
|
||||
|
||||
|
||||
async def async_setup_entry(
|
||||
|
@ -1,34 +1,4 @@
|
||||
"""Constants for the FAA Delays integration."""
|
||||
from __future__ import annotations
|
||||
|
||||
from homeassistant.components.binary_sensor import BinarySensorEntityDescription
|
||||
|
||||
DOMAIN = "faa_delays"
|
||||
|
||||
FAA_BINARY_SENSORS: tuple[BinarySensorEntityDescription, ...] = (
|
||||
BinarySensorEntityDescription(
|
||||
key="GROUND_DELAY",
|
||||
name="Ground Delay",
|
||||
icon="mdi:airport",
|
||||
),
|
||||
BinarySensorEntityDescription(
|
||||
key="GROUND_STOP",
|
||||
name="Ground Stop",
|
||||
icon="mdi:airport",
|
||||
),
|
||||
BinarySensorEntityDescription(
|
||||
key="DEPART_DELAY",
|
||||
name="Departure Delay",
|
||||
icon="mdi:airplane-takeoff",
|
||||
),
|
||||
BinarySensorEntityDescription(
|
||||
key="ARRIVE_DELAY",
|
||||
name="Arrival Delay",
|
||||
icon="mdi:airplane-landing",
|
||||
),
|
||||
BinarySensorEntityDescription(
|
||||
key="CLOSURE",
|
||||
name="Closure",
|
||||
icon="mdi:airplane:off",
|
||||
),
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user