Add the default value `100` to `CONF_ENTRY_MAX_VOLUME`

This commit is contained in:
samuelspagl 2024-03-12 15:26:50 +01:00
parent a35808b0b1
commit efbf88cbdd
2 changed files with 2 additions and 1 deletions

View File

@ -6,6 +6,7 @@
- The config flow now also checks whether the `int` provided for `CONF_ENTRY_MAX_VOLUME` is
greater than `1` and lower than `100`. This will make sure that a division by zero cannot happen.
- Add default value `100` to `CONF_ENTRY_MAX_VOLUME`
## [0.3.0] Icons and Chore

View File

@ -46,7 +46,7 @@ class ExampleConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
vol.Required(CONF_ENTRY_API_KEY): str,
vol.Required(CONF_ENTRY_DEVICE_ID): str,
vol.Required(CONF_ENTRY_DEVICE_NAME): str,
vol.Required(CONF_ENTRY_MAX_VOLUME): All(int, Range(min=1, max=100))
vol.Required(CONF_ENTRY_MAX_VOLUME, default=100): All(int, Range(min=1, max=100))
}
),
)