diff --git a/schema.py b/schema.py index 28f3b2f..ca23e8c 100644 --- a/schema.py +++ b/schema.py @@ -230,9 +230,18 @@ "type": "array", "items": output_resolution_schema }, - "memc": {"type": "boolean"}, - "cec": {"type": "boolean"}, - "lowLatencyMode": {"type": "boolean"}, + "memc": { + "type": "array", + "items": {"type": "boolean"} + }, + "cec": { + "type": "array", + "items": {"type": "boolean"} + }, + "lowLatencyMode": { + "type": "array", + "items": {"type": "boolean"} + }, "matchContentFrameRate": { "type": "array", "items": {"type": "string"} @@ -265,8 +274,14 @@ }, "required": ["min", "max"] }, - "mute": {"type": "boolean"}, - "textToSpeech": {"type": "boolean"} + "mute": { + "type": "array", + "items": {"type": "boolean"} + }, + "textToSpeech": { + "type": "array", + "items": {"type": "boolean"} + }, }, "required": ["status", "language", "outputResolution", "memc", "cec", "lowLatencyMode", "matchContentFrameRate", "hdrOutputMode", "pictureMode", "audioOutputMode", diff --git a/util/enforcement_manager.py b/util/enforcement_manager.py index fbdd039..0ac1a13 100644 --- a/util/enforcement_manager.py +++ b/util/enforcement_manager.py @@ -72,9 +72,6 @@ def is_setting_supported(self, setting): if isinstance(self.supported_settings.get(setting), List) and len(self.supported_settings.get(setting)) == 0: return True - - if isinstance(self.supported_settings.get(setting), bool) and self.supported_settings.get(setting): - return True def add_supported_application(self, application): self.supported_applications.add(application)