Closed samuelspagl closed 7 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
ha-samsung-soundbar | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Mar 18, 2024 10:10am |
ha-samsung-soundbar-kidd | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Mar 18, 2024 10:10am |
🐛 Add additional validation for CONF_ENTRY_MAX_VOLUME value in the setup process to be greater than zero
This PR closes #19 by adding an additional validation to the
CONF_ENTRY_MAX_VOLUME
int value. Instead of just checking whether an int was provided, it will also check weather this int is between1
and100
with a default value of100
.Changelog:
Added
int
provided forCONF_ENTRY_MAX_VOLUME
is greater than1
and lower than100
. This will make sure that a division by zero cannot happen.100
toCONF_ENTRY_MAX_VOLUME