hass-core/homeassistant/components/israel_rail/const.py
Shai Ungar 56b6747bc0
Add Israel rail integration (#121418)
* Add Israel Rail integration

* israel_rail tests

* israel_rail tests

* 1. use entry.runtime
2. DataConnection - data class
3. remove unique id from coordinator
4. use EntityDescription

* add a list of stations in user form

* 1. extend ConfigEntry
2. remove unused pop
3. use IsraelRailSensorEntityDescription to have only one kind of Sensor
4. add test for already configured
5. use snapshot in test

* change user step description

* 1. ConfigEntry[IsraelRailDataUpdateCoordinator]
2. remove redundant attributes
3. use snapshot_platform helper

* remove attr

* remove attr

* move test to test_init.py

* Fix

* Fix

* Fix

* Fix

* fix timezone

* fix

* fix

---------

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-07-11 08:45:32 +02:00

17 lines
340 B
Python

"""Constants for the israel rail integration."""
from datetime import timedelta
from typing import Final
DOMAIN = "israel_rail"
CONF_START: Final = "from"
CONF_DESTINATION: Final = "to"
DEFAULT_NAME = "Next Destination"
DEPARTURES_COUNT = 3
DEFAULT_SCAN_INTERVAL = timedelta(seconds=90)
ATTRIBUTION = "Data provided by Israel rail."