Add the default value `100` to `CONF_ENTRY_MAX_VOLUME`
This commit is contained in:
		
							parent
							
								
									a35808b0b1
								
							
						
					
					
						commit
						efbf88cbdd
					
				|  | @ -6,6 +6,7 @@ | ||||||
| 
 | 
 | ||||||
| - The config flow now also checks whether the `int` provided for `CONF_ENTRY_MAX_VOLUME` is | - 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. |   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 | ## [0.3.0] Icons and Chore | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -46,7 +46,7 @@ class ExampleConfigFlow(config_entries.ConfigFlow, domain=DOMAIN): | ||||||
|                     vol.Required(CONF_ENTRY_API_KEY): str, |                     vol.Required(CONF_ENTRY_API_KEY): str, | ||||||
|                     vol.Required(CONF_ENTRY_DEVICE_ID): str, |                     vol.Required(CONF_ENTRY_DEVICE_ID): str, | ||||||
|                     vol.Required(CONF_ENTRY_DEVICE_NAME): 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)) | ||||||
|                 } |                 } | ||||||
|             ), |             ), | ||||||
|         ) |         ) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue