mirror of
https://github.com/esphome/esphome.git
synced 2025-09-05 21:02:20 +01:00
[network] Always allow `enable_ipv6: false
` (#7291)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
@@ -370,6 +370,20 @@ def boolean(value):
|
||||
)
|
||||
|
||||
|
||||
def boolean_false(value):
|
||||
"""Validate the given config option to be a boolean, set to False.
|
||||
|
||||
This option allows a bunch of different ways of expressing boolean values:
|
||||
- instance of boolean
|
||||
- 'true'/'false'
|
||||
- 'yes'/'no'
|
||||
- 'enable'/disable
|
||||
"""
|
||||
if boolean(value):
|
||||
raise Invalid("Expected boolean value to be false")
|
||||
return False
|
||||
|
||||
|
||||
@schema_extractor_list
|
||||
def ensure_list(*validators):
|
||||
"""Validate this configuration option to be a list.
|
||||
|
Reference in New Issue
Block a user