From e6ea78ab49f183d951368bc52c55702f36b0a2e1 Mon Sep 17 00:00:00 2001 From: Edward Brown Date: Fri, 14 Nov 2025 12:08:21 +0000 Subject: [PATCH] Add unpicking comments --- haco/climate.py | 2 +- haco/mqtt.py | 3 ++- haco/schema.py | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/haco/climate.py b/haco/climate.py index e02bf4f..da441eb 100644 --- a/haco/climate.py +++ b/haco/climate.py @@ -22,7 +22,7 @@ class Climate(Control): ), Capability( name='temperature', - alias='target_temperature' + alias='target_temperature' # only used for callbacks, i guess to unify/simplify them for the user. ), Capability( name='temperature_high' diff --git a/haco/mqtt.py b/haco/mqtt.py index 4363bd4..8fb7e40 100644 --- a/haco/mqtt.py +++ b/haco/mqtt.py @@ -1,8 +1,9 @@ -import aiomqtt import asyncio import json from pathlib import Path +import aiomqtt + from haco import constants, tools from haco.constants import MQTT_PASSWORD, MQTT_HOST, MQTT_PORT, MQTT_USERNAME from haco.device import Device diff --git a/haco/schema.py b/haco/schema.py index e6679f2..0412a9b 100644 --- a/haco/schema.py +++ b/haco/schema.py @@ -133,7 +133,7 @@ class Platform: if not self.callback: return {} - return {self.get_topic_subscription(): self.get_handler_name()} + return {self.get_topic_subscription(): self.get_handler_name()} # I think this is as such because it needs to invert the subscription. so one platform gets the other's messages? def get_config_ha(self):