hass-core/homeassistant/components/switchbot/strings.json
RenierM26 b15f11f46a
Discover Switchbot MAC in config flow (#56616)
* Update config_flow.py

* Switchbot Config_flow discover mac instead of needing to type it.

* Do not show already configured devices in config flow, abort if no unconfigured devices.

* Apply suggestions from code review

Co-authored-by: J. Nick Koston <nick@koston.org>

* Move MAC to top of config flow form dict.

* Update homeassistant/components/switchbot/config_flow.py

Co-authored-by: J. Nick Koston <nick@koston.org>
2021-09-27 15:12:40 -05:00

35 lines
1 KiB
JSON

{
"config": {
"flow_title": "{name}",
"step": {
"user": {
"title": "Setup Switchbot device",
"data": {
"mac": "Device MAC address",
"name": "[%key:common::config_flow::data::name%]",
"password": "[%key:common::config_flow::data::password%]"
}
}
},
"error": {},
"abort": {
"already_configured_device": "[%key:common::config_flow::abort::already_configured_device%]",
"no_unconfigured_devices": "No unconfigured devices found.",
"unknown": "[%key:common::config_flow::error::unknown%]",
"cannot_connect": "[%key:common::config_flow::error::cannot_connect%]",
"switchbot_unsupported_type": "Unsupported Switchbot Type."
}
},
"options": {
"step": {
"init": {
"data": {
"update_time": "Time between updates (seconds)",
"retry_count": "Retry count",
"retry_timeout": "Timeout between retries",
"scan_timeout": "How long to scan for advertisement data"
}
}
}
}
}