Add unpicking comments

This commit is contained in:
Edward Brown 2025-11-14 12:08:21 +00:00 • committed by Edward Brown
parent 77214fa26b
commit e6ea78ab49
3 changed files with 4 additions and 3 deletions

View file

@ -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'

View file

@ -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

View file

@ -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):