From 05bbffd124a1bb79f7c1f5ff8eb54e7bd9ad7427 Mon Sep 17 00:00:00 2001 From: Warren Rodie Date: Sun, 8 Dec 2024 15:37:37 +1100 Subject: [PATCH] Add Support for Mono/Centre channel (#74) --- .devcontainer.json | 2 +- .../ha_behringer_mixer/coordinator.py | 2 ++ .../ha_behringer_mixer/manifest.json | 28 ++++++++++--------- 3 files changed, 18 insertions(+), 14 deletions(-) diff --git a/.devcontainer.json b/.devcontainer.json index 56b3290..a770f6f 100644 --- a/.devcontainer.json +++ b/.devcontainer.json @@ -1,6 +1,6 @@ { "name": "ludeeus/integration_blueprint", - "image": "mcr.microsoft.com/vscode/devcontainers/python:0-3.11-bullseye", + "image": "mcr.microsoft.com/vscode/devcontainers/python:3.12-bullseye", "postCreateCommand": "scripts/setup", "forwardPorts": [ 8123 diff --git a/custom_components/ha_behringer_mixer/coordinator.py b/custom_components/ha_behringer_mixer/coordinator.py index 67fa9a2..837953a 100644 --- a/custom_components/ha_behringer_mixer/coordinator.py +++ b/custom_components/ha_behringer_mixer/coordinator.py @@ -59,6 +59,8 @@ def build_entity_catalog(self, mixer_info): } if self.config_entry.data.get("MAIN_CONFIG"): self.fader_group(entities, "main", 0, "main/st") + if mixer_info.get("has_mono", False): + self.fader_group(entities, "mono", 0, "main/m") # Input channels for entity_type in types: # num_type = mixer_info.get(entity_type, {}).get("number") diff --git a/custom_components/ha_behringer_mixer/manifest.json b/custom_components/ha_behringer_mixer/manifest.json index 6d8f200..57f4251 100644 --- a/custom_components/ha_behringer_mixer/manifest.json +++ b/custom_components/ha_behringer_mixer/manifest.json @@ -1,14 +1,16 @@ { - "domain": "ha_behringer_mixer", - "name": "Behringer Mixer", - "codeowners": ["@wrodie"], - "config_flow": true, - "documentation": "https://github.com/wrodie/ha_behringer_mixer", - "integration_type": "device", - "iot_class": "local_push", - "issue_tracker": "https://github.com/wrodie/ha_behringer_mixer/issues", - "requirements": [ - "behringer-mixer==0.4.5" - ], - "version": "0.1.10" -} + "domain": "ha_behringer_mixer", + "name": "Behringer Mixer", + "codeowners": [ + "@wrodie" + ], + "config_flow": true, + "documentation": "https://github.com/wrodie/ha_behringer_mixer", + "integration_type": "device", + "iot_class": "local_push", + "issue_tracker": "https://github.com/wrodie/ha_behringer_mixer/issues", + "requirements": [ + "behringer-mixer==0.4.6" + ], + "version": "0.1.11" +} \ No newline at end of file