-
-
Notifications
You must be signed in to change notification settings - Fork 31.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move OpenSky constants to separate const file (#97013)
- Loading branch information
Showing
2 changed files
with
26 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
"""OpenSky constants.""" | ||
DEFAULT_NAME = "OpenSky" | ||
DOMAIN = "opensky" | ||
|
||
CONF_ALTITUDE = "altitude" | ||
ATTR_ICAO24 = "icao24" | ||
ATTR_CALLSIGN = "callsign" | ||
ATTR_ALTITUDE = "altitude" | ||
ATTR_ON_GROUND = "on_ground" | ||
ATTR_SENSOR = "sensor" | ||
ATTR_STATES = "states" | ||
DEFAULT_ALTITUDE = 0 | ||
|
||
EVENT_OPENSKY_ENTRY = f"{DOMAIN}_entry" | ||
EVENT_OPENSKY_EXIT = f"{DOMAIN}_exit" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters