We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 597113e commit 12ef3baCopy full SHA for 12ef3ba
custom_components/ups_over_network/config_flow.py
@@ -0,0 +1,12 @@
1
+import voluptuous as vol
2
+from homeassistant.helpers import config_validation as cv
3
+
4
+PLATFORM_SCHEMA = vol.Schema({
5
+ vol.Required(CONF_HOST): cv.string,
6
+ vol.Required(CONF_ID): cv.string,
7
+ vol.Required(CONF_NAME): cv.string,
8
+ vol.Required(CONF_PORT): cv.port,
9
+ vol.Required(CONF_PROTOCOL): cv.string,
10
+ vol.Required(CONF_RESOURCES): vol.All(cv.ensure_list, [vol.In(SENSOR_DEFINITIONS.keys())]),
11
+ vol.Optional(CONF_SCAN_INTERVAL, default=timedelta(seconds=30)): cv.time_period,
12
+}, extra=vol.ALLOW_EXTRA)
0 commit comments