From 14c4ec65eef3cc5d24f903d94d01a4ec0062811e Mon Sep 17 00:00:00 2001 From: coon Date: Fri, 26 Sep 2025 23:47:12 +0200 Subject: [PATCH] mqtt_client.py: remove mixer import --- mqtt_client.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/mqtt_client.py b/mqtt_client.py index 6dbe75f..f461db4 100644 --- a/mqtt_client.py +++ b/mqtt_client.py @@ -4,7 +4,6 @@ import argparse import json import paho.mqtt.client as mqtt -import mixer from mixer import Mixer @@ -14,7 +13,7 @@ class MqttClient: MQTT_COMMAND_TOPIC = "livingroom/voc/allen_heath_qu16_mixer" def __init__(self, mixer_ip): - self.m = mixer.Mixer(mixer_ip) + self.mixer = Mixer(mixer_ip) self.client = mqtt.Client(callback_api_version=mqtt.CallbackAPIVersion.VERSION2) def mqtt_autodiscovery(self, client): @@ -51,9 +50,9 @@ class MqttClient: match j["command"]: case "scene_recall": - self.m.scene_recall(j["args"]["scene_id"]) + self.mixer.scene_recall(j["args"]["scene_id"]) case "shutdown": - self.m.shutdown() + self.mixer.shutdown() def run(self, hostname): self.client.on_connect = self.on_connect