* add config option to set timeout for wiffi devices Wiffi devices allow to configure the update period (= full_loop_minutes). The integration shall respect the configured update period and therefore need a configuration for the timeout, too. * Move timeout from config flow to option flow * add test for option flow
15 lines
453 B
Python
15 lines
453 B
Python
"""Constants for the wiffi component."""
|
|
|
|
# Component domain, used to store component data in hass data.
|
|
DOMAIN = "wiffi"
|
|
|
|
# Default port for TCP server
|
|
DEFAULT_PORT = 8189
|
|
|
|
# Default timeout in minutes
|
|
DEFAULT_TIMEOUT = 3
|
|
|
|
# Signal name to send create/update to platform (sensor/binary_sensor)
|
|
CREATE_ENTITY_SIGNAL = "wiffi_create_entity_signal"
|
|
UPDATE_ENTITY_SIGNAL = "wiffi_update_entity_signal"
|
|
CHECK_ENTITIES_SIGNAL = "wiffi_check_entities_signal"
|