#20043: Remove superfluous dict in WEBHOOK_SCHEMA validation
parent
452d7cfd61
commit
1e784b4d7a
|
@ -44,7 +44,6 @@ def _validate_test_mode(obj: Dict) -> Dict:
|
||||||
|
|
||||||
|
|
||||||
WEBHOOK_SCHEMA = vol.All(
|
WEBHOOK_SCHEMA = vol.All(
|
||||||
dict,
|
|
||||||
vol.Schema({
|
vol.Schema({
|
||||||
vol.Required(ATTR_LATITUDE): cv.latitude,
|
vol.Required(ATTR_LATITUDE): cv.latitude,
|
||||||
vol.Required(ATTR_LONGITUDE): cv.longitude,
|
vol.Required(ATTR_LONGITUDE): cv.longitude,
|
||||||
|
|
Loading…
Reference in New Issue