py: Fix None value in ControlType enum

"None" is not a valid name for an enum value, so change it to "Null".

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
Tomi Valkeinen 2022-05-27 17:44:22 +03:00 committed by Laurent Pinchart
parent 0381b09f89
commit ccfcf5f235

View file

@ -22,7 +22,7 @@ void init_py_enums(py::module &m)
.value("Viewfinder", StreamRole::Viewfinder);
py::enum_<ControlType>(m, "ControlType")
.value("None", ControlType::ControlTypeNone)
.value("Null", ControlType::ControlTypeNone)
.value("Bool", ControlType::ControlTypeBool)
.value("Byte", ControlType::ControlTypeByte)
.value("Integer32", ControlType::ControlTypeInteger32)