Changes to make Passive DPS entites a configurable item

This commit is contained in:
sibowler
2022-09-10 06:40:53 +10:00
parent 1db48e5012
commit f7ce9be5f6
6 changed files with 28 additions and 9 deletions

View File

@@ -14,6 +14,7 @@ from .const import (
CONF_DEFAULT_VALUE,
CONF_RESTORE_ON_RECONNECT,
CONF_STEPSIZE_VALUE,
CONF_PASSIVE_ENTITY,
)
_LOGGER = logging.getLogger(__name__)
@@ -38,8 +39,9 @@ def flow_schema(dps):
vol.Coerce(float),
vol.Range(min=0.0, max=1000000.0),
),
vol.Optional(CONF_DEFAULT_VALUE): str,
vol.Required(CONF_RESTORE_ON_RECONNECT): bool,
vol.Required(CONF_PASSIVE_ENTITY): bool,
vol.Optional(CONF_DEFAULT_VALUE): str,
}