1
mirror of https://github.com/home-assistant/core synced 2024-09-03 08:14:07 +02:00
ha-core/homeassistant/components/sms/const.py
Oscar Calvo 1cc9800a93
Support custom baud speed (#68320)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2022-05-09 12:06:29 +02:00

30 lines
995 B
Python

"""Constants for sms Component."""
DOMAIN = "sms"
SMS_GATEWAY = "SMS_GATEWAY"
SMS_STATE_UNREAD = "UnRead"
CONF_BAUD_SPEED = "baud_speed"
DEFAULT_BAUD_SPEED = "0"
DEFAULT_BAUD_SPEEDS = [
{"value": DEFAULT_BAUD_SPEED, "label": "Auto"},
{"value": "50", "label": "50"},
{"value": "75", "label": "75"},
{"value": "110", "label": "110"},
{"value": "134", "label": "134"},
{"value": "150", "label": "150"},
{"value": "200", "label": "200"},
{"value": "300", "label": "300"},
{"value": "600", "label": "600"},
{"value": "1200", "label": "1200"},
{"value": "1800", "label": "1800"},
{"value": "2400", "label": "2400"},
{"value": "4800", "label": "4800"},
{"value": "9600", "label": "9600"},
{"value": "19200", "label": "19200"},
{"value": "28800", "label": "28800"},
{"value": "38400", "label": "38400"},
{"value": "57600", "label": "57600"},
{"value": "76800", "label": "76800"},
{"value": "115200", "label": "115200"},
]