From 893c50ad87b1d657b378facac15da4c8ffaf6176 Mon Sep 17 00:00:00 2001 From: Edward Brown Date: Mon, 4 May 2026 14:07:07 +0100 Subject: [PATCH 01/40] chore: adopt pyproject.package.toml package marker --- haco/{pyproject.toml => pyproject.package.toml} | 0 pyproject.toml | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename haco/{pyproject.toml => pyproject.package.toml} (100%) diff --git a/haco/pyproject.toml b/haco/pyproject.package.toml similarity index 100% rename from haco/pyproject.toml rename to haco/pyproject.package.toml diff --git a/pyproject.toml b/pyproject.toml index 4512fc2..65e8441 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -36,7 +36,7 @@ include = ["haco*"] namespaces = false [tool.setuptools.package-data] -haco = ["pyproject.toml"] +haco = ["pyproject.package.toml"] [tool.uv.sources.corio] path = "../corio" From 5e202dfc1bd3f3e69de8f07879b269b7713a03c8 Mon Sep 17 00:00:00 2001 From: Edward Brown Date: Mon, 4 May 2026 16:44:05 +0100 Subject: [PATCH 02/40] Release version 0.3.3-alpha000 --- pyproject.toml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 65e8441..f7fc7c6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ requires = ["setuptools>=82", "wheel"] build-backend = "setuptools.build_meta" [tool.corio.metadata] -version = "0.3.2" +version = "0.3.3-alpha000" port = 6 base = "python" description = "Home Assistant Control Objects" @@ -44,11 +44,10 @@ editable = true [project] name = "haco" -version = "0.3.2" +version = "0.3.3-alpha000" description = "Home Assistant Control Objects" readme = "README.md" license = "Apache-2.0" -license-files = ["LICENSE"] keywords = ["homeassistant", "controls", "python", "tasmota"] dependencies = ["corio[version.dev,logging,sets,yaml,debug,caching,api,mqtt]", "psutil"] From 3b2dd8666994f43cb2dda9cb461ae96ded827c91 Mon Sep 17 00:00:00 2001 From: Edward Brown Date: Mon, 4 May 2026 16:45:18 +0100 Subject: [PATCH 03/40] Release version 0.3.3-alpha001 --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index f7fc7c6..47c1276 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ requires = ["setuptools>=82", "wheel"] build-backend = "setuptools.build_meta" [tool.corio.metadata] -version = "0.3.3-alpha000" +version = "0.3.3-alpha001" port = 6 base = "python" description = "Home Assistant Control Objects" @@ -44,7 +44,7 @@ editable = true [project] name = "haco" -version = "0.3.3-alpha000" +version = "0.3.3-alpha001" description = "Home Assistant Control Objects" readme = "README.md" license = "Apache-2.0" From 4c39fa60c3f65d95f69327dcb8ccf6bb9536e797 Mon Sep 17 00:00:00 2001 From: Edward Brown Date: Mon, 4 May 2026 16:55:10 +0100 Subject: [PATCH 04/40] Release version 0.3.3 --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 47c1276..c073b5e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ requires = ["setuptools>=82", "wheel"] build-backend = "setuptools.build_meta" [tool.corio.metadata] -version = "0.3.3-alpha001" +version = "0.3.3" port = 6 base = "python" description = "Home Assistant Control Objects" @@ -44,7 +44,7 @@ editable = true [project] name = "haco" -version = "0.3.3-alpha001" +version = "0.3.3" description = "Home Assistant Control Objects" readme = "README.md" license = "Apache-2.0" From d6fe7dbfeed6b204c032a2c6e509eff82744b122 Mon Sep 17 00:00:00 2001 From: Edward Brown Date: Thu, 7 May 2026 13:50:39 +0100 Subject: [PATCH 05/40] Release version 0.3.4-alpha000 --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index c073b5e..ab67e8d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ requires = ["setuptools>=82", "wheel"] build-backend = "setuptools.build_meta" [tool.corio.metadata] -version = "0.3.3" +version = "0.3.4-alpha000" port = 6 base = "python" description = "Home Assistant Control Objects" @@ -44,7 +44,7 @@ editable = true [project] name = "haco" -version = "0.3.3" +version = "0.3.4-alpha000" description = "Home Assistant Control Objects" readme = "README.md" license = "Apache-2.0" From 76a099433fe31f28922283133513d7b2fd1ff15a Mon Sep 17 00:00:00 2001 From: Edward Brown Date: Thu, 7 May 2026 13:54:01 +0100 Subject: [PATCH 06/40] Release version 0.3.4-alpha001 --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index ab67e8d..4bf6c07 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ requires = ["setuptools>=82", "wheel"] build-backend = "setuptools.build_meta" [tool.corio.metadata] -version = "0.3.4-alpha000" +version = "0.3.4-alpha001" port = 6 base = "python" description = "Home Assistant Control Objects" @@ -44,7 +44,7 @@ editable = true [project] name = "haco" -version = "0.3.4-alpha000" +version = "0.3.4-alpha001" description = "Home Assistant Control Objects" readme = "README.md" license = "Apache-2.0" From f60594fc457400a8b5c09a1a644c6342a1329ca9 Mon Sep 17 00:00:00 2001 From: Edward Brown Date: Thu, 7 May 2026 14:36:48 +0100 Subject: [PATCH 07/40] Release version 0.3.4-alpha002 --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 4bf6c07..671236a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ requires = ["setuptools>=82", "wheel"] build-backend = "setuptools.build_meta" [tool.corio.metadata] -version = "0.3.4-alpha001" +version = "0.3.4-alpha002" port = 6 base = "python" description = "Home Assistant Control Objects" @@ -44,7 +44,7 @@ editable = true [project] name = "haco" -version = "0.3.4-alpha001" +version = "0.3.4-alpha002" description = "Home Assistant Control Objects" readme = "README.md" license = "Apache-2.0" From c9f3385661f3127fa24d308e000df8ba8b7ba233 Mon Sep 17 00:00:00 2001 From: Edward Brown Date: Thu, 7 May 2026 14:38:23 +0100 Subject: [PATCH 08/40] Release version 0.3.4-alpha003 --- pyproject.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 671236a..ce724c9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ requires = ["setuptools>=82", "wheel"] build-backend = "setuptools.build_meta" [tool.corio.metadata] -version = "0.3.4-alpha002" +version = "0.3.4-alpha003" port = 6 base = "python" description = "Home Assistant Control Objects" @@ -44,12 +44,12 @@ editable = true [project] name = "haco" -version = "0.3.4-alpha002" +version = "0.3.4-alpha003" description = "Home Assistant Control Objects" readme = "README.md" license = "Apache-2.0" keywords = ["homeassistant", "controls", "python", "tasmota"] -dependencies = ["corio[version.dev,logging,sets,yaml,debug,caching,api,mqtt]", "psutil"] +dependencies = ["corio", "corio[version.dev,logging,sets,yaml,debug,caching,api,mqtt]", "psutil"] [[project.authors]] name = "Frontmatter AI" From cafe6fbcec440245f7f73eb914a8b952ce918739 Mon Sep 17 00:00:00 2001 From: Edward Brown Date: Thu, 7 May 2026 14:39:17 +0100 Subject: [PATCH 09/40] Release version 0.3.4-alpha004 --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index ce724c9..33f0f7b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ requires = ["setuptools>=82", "wheel"] build-backend = "setuptools.build_meta" [tool.corio.metadata] -version = "0.3.4-alpha003" +version = "0.3.4-alpha004" port = 6 base = "python" description = "Home Assistant Control Objects" @@ -44,7 +44,7 @@ editable = true [project] name = "haco" -version = "0.3.4-alpha003" +version = "0.3.4-alpha004" description = "Home Assistant Control Objects" readme = "README.md" license = "Apache-2.0" From 10cd893a90abb8148097909ad3c618219bae9a10 Mon Sep 17 00:00:00 2001 From: Edward Brown Date: Thu, 7 May 2026 14:40:31 +0100 Subject: [PATCH 10/40] Release version 0.3.4-alpha005 --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 33f0f7b..e7a861b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ requires = ["setuptools>=82", "wheel"] build-backend = "setuptools.build_meta" [tool.corio.metadata] -version = "0.3.4-alpha004" +version = "0.3.4-alpha005" port = 6 base = "python" description = "Home Assistant Control Objects" @@ -44,7 +44,7 @@ editable = true [project] name = "haco" -version = "0.3.4-alpha004" +version = "0.3.4-alpha005" description = "Home Assistant Control Objects" readme = "README.md" license = "Apache-2.0" From 243cb5982d469ca6eb902c8e309705c90a103ca4 Mon Sep 17 00:00:00 2001 From: Edward Brown Date: Thu, 7 May 2026 14:51:52 +0100 Subject: [PATCH 11/40] Release version 0.3.4-alpha006 --- pyproject.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index e7a861b..d8211d7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ requires = ["setuptools>=82", "wheel"] build-backend = "setuptools.build_meta" [tool.corio.metadata] -version = "0.3.4-alpha005" +version = "0.3.4-alpha006" port = 6 base = "python" description = "Home Assistant Control Objects" @@ -44,12 +44,12 @@ editable = true [project] name = "haco" -version = "0.3.4-alpha005" +version = "0.3.4-alpha006" description = "Home Assistant Control Objects" readme = "README.md" license = "Apache-2.0" keywords = ["homeassistant", "controls", "python", "tasmota"] -dependencies = ["corio", "corio[version.dev,logging,sets,yaml,debug,caching,api,mqtt]", "psutil"] +dependencies = ["corio[version.dev,logging,sets,yaml,debug,caching,api,mqtt]", "psutil"] [[project.authors]] name = "Frontmatter AI" From c82b8f9a0b5176d46957d8443dce197289df7bed Mon Sep 17 00:00:00 2001 From: Edward Brown Date: Thu, 7 May 2026 14:54:09 +0100 Subject: [PATCH 12/40] Release version 0.3.4-alpha007 --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index d8211d7..1f927c0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ requires = ["setuptools>=82", "wheel"] build-backend = "setuptools.build_meta" [tool.corio.metadata] -version = "0.3.4-alpha006" +version = "0.3.4-alpha007" port = 6 base = "python" description = "Home Assistant Control Objects" @@ -44,7 +44,7 @@ editable = true [project] name = "haco" -version = "0.3.4-alpha006" +version = "0.3.4-alpha007" description = "Home Assistant Control Objects" readme = "README.md" license = "Apache-2.0" From bf87c832518b83a8c125ca5342af4f34de871314 Mon Sep 17 00:00:00 2001 From: Edward Brown Date: Thu, 7 May 2026 15:03:49 +0100 Subject: [PATCH 13/40] Release version 0.3.4-alpha008 --- pyproject.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 1f927c0..fb25fed 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ requires = ["setuptools>=82", "wheel"] build-backend = "setuptools.build_meta" [tool.corio.metadata] -version = "0.3.4-alpha007" +version = "0.3.4-alpha008" port = 6 base = "python" description = "Home Assistant Control Objects" @@ -44,12 +44,12 @@ editable = true [project] name = "haco" -version = "0.3.4-alpha007" +version = "0.3.4-alpha008" description = "Home Assistant Control Objects" readme = "README.md" license = "Apache-2.0" keywords = ["homeassistant", "controls", "python", "tasmota"] -dependencies = ["corio[version.dev,logging,sets,yaml,debug,caching,api,mqtt]", "psutil"] +dependencies = ["corio[api,caching,debug,logging,mqtt,sets,version.dev,yaml]==2.2.2-alpha002", "psutil"] [[project.authors]] name = "Frontmatter AI" From 107e62081d64fc3ae2991eb0239de925b64e7b5c Mon Sep 17 00:00:00 2001 From: Edward Brown Date: Fri, 8 May 2026 09:20:06 +0100 Subject: [PATCH 14/40] Account for corio import changes and add tests for pydantic models --- haco/capabilities.py | 2 +- haco/control.py | 2 +- haco/obs.py | 4 +- haco/tests/test_pydantic_models.py | 84 ++++++++++++++++++++++++++++++ haco/utils.py | 8 +-- 5 files changed, 92 insertions(+), 8 deletions(-) create mode 100644 haco/tests/test_pydantic_models.py diff --git a/haco/capabilities.py b/haco/capabilities.py index 2a09a9f..17b1d83 100644 --- a/haco/capabilities.py +++ b/haco/capabilities.py @@ -4,7 +4,7 @@ from typing import TYPE_CHECKING, Type, ClassVar from pydantic import Field -from corio.iterator_tools import strip_none +from corio.iterator import strip_none from haco.base import Base from haco.topics import AnnounceTopicState, AnnounceTopicCommand diff --git a/haco/control.py b/haco/control.py index bce7d3e..009cd02 100644 --- a/haco/control.py +++ b/haco/control.py @@ -6,7 +6,7 @@ from pydantic import Field from corio import Constants from corio import Path -from corio.json_tools import to_json +from corio.jsn import to_json from haco.base import Base from haco.capabilities import Capability diff --git a/haco/obs.py b/haco/obs.py index 74ade85..b0b1d93 100644 --- a/haco/obs.py +++ b/haco/obs.py @@ -3,13 +3,13 @@ Observability and logging setup for the haco library. """ -from corio import logging, debug, Constants +from corio import logs, debug, Constants from haco.paths import paths debug.trace() -logger = logging.get_logger( +logger = logs.get_logger( name=paths.name_ns, stream=Constants.DEVELOPMENT, version=paths.metadata.version, diff --git a/haco/tests/test_pydantic_models.py b/haco/tests/test_pydantic_models.py new file mode 100644 index 0000000..1c33d4e --- /dev/null +++ b/haco/tests/test_pydantic_models.py @@ -0,0 +1,84 @@ +from __future__ import annotations + +from types import SimpleNamespace + +import pytest + +from corio import Path + +from haco.climate import Climate +from haco.device import Device +from haco.switch import Switch + + +@pytest.fixture +def client_stub(): + return SimpleNamespace( + topic=Path("root/client"), + will=SimpleNamespace(topic="root/status"), + ) + + +def test_switch_announce_payload_matches_expected(client_stub): + switch = Switch(name="Main", icon="power") + device = Device(name="Dev", controls=[switch]) + device.set_parent(client_stub) + + data = switch.get_announce() + assert data == { + "platform": "switch", + "name": "Main", + "icon": "mdi:power", + "unique_id": "dev-main", + "availability_topic": "root/status", + "state_topic": "root/client/dev/main/default/state", + "command_topic": "root/client/dev/main/default/command", + } + + +def test_climate_announce_payload_has_expected_ha_keys(client_stub): + climate = Climate(name="Cl") + device = Device(name="Dev", controls=[climate]) + device.set_parent(client_stub) + + data = climate.get_announce() + + expected_subset = { + "platform", + "name", + "unique_id", + "availability_topic", + "temperature_unit", + "temperature_min", + "temperature_max", + "mode_command_topic", + "mode_state_topic", + "temperature_command_topic", + "temperature_state_topic", + "power_command_topic", + "power_state_topic", + } + assert expected_subset.issubset(set(data)) + assert not any(key in data for key in {"capabilities", "subscriptions", "device", "parent"}) + assert not any(callable(value) for value in data.values()) + + +def test_model_dump_excludes_runtime_extra_attributes(): + switch = Switch(name="Main") + switch.dynamic_callback = lambda value: value + + dumped = switch.model_dump() + assert "dynamic_callback" not in dumped + + +def test_parent_wiring_sets_control_subscriptions(client_stub): + switch = Switch(name="Main") + device = Device(name="Dev", controls=[switch]) + device.set_parent(client_stub) + + assert switch.unique_id == "dev-main" + assert switch.availability_topic == "root/status" + assert device.subscriptions is not None + assert "root/client/dev/main/default/command" in device.subscriptions + handler = device.subscriptions["root/client/dev/main/default/command"] + assert hasattr(handler, "handle") diff --git a/haco/utils.py b/haco/utils.py index f9bb484..67dc687 100644 --- a/haco/utils.py +++ b/haco/utils.py @@ -1,8 +1,8 @@ import string from typing import Callable -from corio import json -from corio.datatype_tools import to_bool +from corio import jsn +from corio.datatype import to_bool CHARS_ALLOWED = string.ascii_lowercase + string.digits SEPS = '_- /' @@ -76,8 +76,8 @@ class ConvertersNumeric(Converters): Converters for numeric values. """ - command: Callable = json.from_json - state: Callable = json.to_json + command: Callable = jsn.from_json + state: Callable = jsn.to_json def get_prefix(io: str) -> str: """ From 8bd1ba75d92f116d4b6436b4aaad5d25ebba1d09 Mon Sep 17 00:00:00 2001 From: Edward Brown Date: Fri, 8 May 2026 09:21:30 +0100 Subject: [PATCH 15/40] Release version 0.3.4-alpha009 --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index fb25fed..20bafba 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ requires = ["setuptools>=82", "wheel"] build-backend = "setuptools.build_meta" [tool.corio.metadata] -version = "0.3.4-alpha008" +version = "0.3.4-alpha009" port = 6 base = "python" description = "Home Assistant Control Objects" @@ -44,7 +44,7 @@ editable = true [project] name = "haco" -version = "0.3.4-alpha008" +version = "0.3.4-alpha009" description = "Home Assistant Control Objects" readme = "README.md" license = "Apache-2.0" From d5b6cee0a1474ee38f262b00ee97d784b1a1ca4e Mon Sep 17 00:00:00 2001 From: Edward Brown Date: Fri, 8 May 2026 09:48:09 +0100 Subject: [PATCH 16/40] Release version 0.3.4 --- CHANGELOG.md | 2 +- docs/changelog/0.3.4.md | 3 +++ pyproject.toml | 4 ++-- 3 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 docs/changelog/0.3.4.md diff --git a/CHANGELOG.md b/CHANGELOG.md index 41c198d..0904e18 120000 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1 +1 @@ -docs/changelog/0.3.0.md \ No newline at end of file +docs/changelog/0.3.4.md \ No newline at end of file diff --git a/docs/changelog/0.3.4.md b/docs/changelog/0.3.4.md new file mode 100644 index 0000000..58b84ad --- /dev/null +++ b/docs/changelog/0.3.4.md @@ -0,0 +1,3 @@ +- Updated for `corio` module refactors by switching imports to current paths (`corio.iterator`, `corio.jsn`, `corio.datatype`, and `corio.logs`) across capabilities, control serialization, converters, and logging setup. +- Added `haco/tests/test_pydantic_models.py` coverage to verify Home Assistant announce payload shape for `Switch` and `Climate`, runtime-attribute exclusion from `model_dump()`, and parent/subscription wiring behavior. + diff --git a/pyproject.toml b/pyproject.toml index 20bafba..d9775af 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ requires = ["setuptools>=82", "wheel"] build-backend = "setuptools.build_meta" [tool.corio.metadata] -version = "0.3.4-alpha009" +version = "0.3.4" port = 6 base = "python" description = "Home Assistant Control Objects" @@ -44,7 +44,7 @@ editable = true [project] name = "haco" -version = "0.3.4-alpha009" +version = "0.3.4" description = "Home Assistant Control Objects" readme = "README.md" license = "Apache-2.0" From efd3030406c9842041aa456758d38f4380ec405d Mon Sep 17 00:00:00 2001 From: Edward Brown Date: Fri, 8 May 2026 09:49:27 +0100 Subject: [PATCH 17/40] Remove obsolete documentation navigation entries from pyproject.toml --- pyproject.toml | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index d9775af..61d66b1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -16,18 +16,6 @@ keywords = ["homeassistant", "controls", "python", "tasmota"] is_pypi = true is_dockerhub = false -[[tool.corio.metadata.docs.nav]] -Home = "index.md" - -[[tool.corio.metadata.docs.nav]] -"Quick Start" = "quick-start.md" - -[[tool.corio.metadata.docs.nav]] -"Control Types" = "controls.md" - -[[tool.corio.metadata.docs.nav]] -Changelog = "changelog/" - [tool.corio.metadata.setup] [tool.setuptools.packages.find] From b41b852735d1d0ca76f819497b2754a8d4455b84 Mon Sep 17 00:00:00 2001 From: Edward Brown Date: Fri, 8 May 2026 09:49:40 +0100 Subject: [PATCH 18/40] Release version 0.3.5 --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 61d66b1..ddc8aa1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ requires = ["setuptools>=82", "wheel"] build-backend = "setuptools.build_meta" [tool.corio.metadata] -version = "0.3.4" +version = "0.3.5" port = 6 base = "python" description = "Home Assistant Control Objects" @@ -32,7 +32,7 @@ editable = true [project] name = "haco" -version = "0.3.4" +version = "0.3.5" description = "Home Assistant Control Objects" readme = "README.md" license = "Apache-2.0" From 4ca01121e1a7a826e0554b145c3869ab00c04a74 Mon Sep 17 00:00:00 2001 From: Edward Brown Date: Fri, 8 May 2026 10:14:43 +0100 Subject: [PATCH 19/40] Release version 0.3.6 --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index ddc8aa1..a380071 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ requires = ["setuptools>=82", "wheel"] build-backend = "setuptools.build_meta" [tool.corio.metadata] -version = "0.3.5" +version = "0.3.6" port = 6 base = "python" description = "Home Assistant Control Objects" @@ -32,7 +32,7 @@ editable = true [project] name = "haco" -version = "0.3.5" +version = "0.3.6" description = "Home Assistant Control Objects" readme = "README.md" license = "Apache-2.0" From e9440745c3b111568b276cd14f2dce71fe6b46de Mon Sep 17 00:00:00 2001 From: Edward Brown Date: Fri, 8 May 2026 10:22:18 +0100 Subject: [PATCH 20/40] Release version 0.3.7 --- pyproject.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index a380071..b1adaf8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ requires = ["setuptools>=82", "wheel"] build-backend = "setuptools.build_meta" [tool.corio.metadata] -version = "0.3.6" +version = "0.3.7" port = 6 base = "python" description = "Home Assistant Control Objects" @@ -32,12 +32,12 @@ editable = true [project] name = "haco" -version = "0.3.6" +version = "0.3.7" description = "Home Assistant Control Objects" readme = "README.md" license = "Apache-2.0" keywords = ["homeassistant", "controls", "python", "tasmota"] -dependencies = ["corio[api,caching,debug,logging,mqtt,sets,version.dev,yaml]==2.2.2-alpha002", "psutil"] +dependencies = ["corio[api,caching,debug,logging,mqtt,sets,version.dev,yaml]==2.2.2", "psutil"] [[project.authors]] name = "Frontmatter AI" From d9a8561e41ce236b927627873331010f71795cca Mon Sep 17 00:00:00 2001 From: Edward Brown Date: Sat, 9 May 2026 16:04:33 +0100 Subject: [PATCH 21/40] Release version 0.3.8-alpha000 --- pyproject.toml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index b1adaf8..753a64e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ requires = ["setuptools>=82", "wheel"] build-backend = "setuptools.build_meta" [tool.corio.metadata] -version = "0.3.7" +version = "0.3.8-alpha000" port = 6 base = "python" description = "Home Assistant Control Objects" @@ -30,14 +30,20 @@ haco = ["pyproject.package.toml"] path = "../corio" editable = true +[tool.tox] +requires = ["tox>=4.22", "tox-uv>=1"] +env_list = [] + +[tool.tox.env] + [project] name = "haco" -version = "0.3.7" +version = "0.3.8-alpha000" description = "Home Assistant Control Objects" readme = "README.md" license = "Apache-2.0" keywords = ["homeassistant", "controls", "python", "tasmota"] -dependencies = ["corio[api,caching,debug,logging,mqtt,sets,version.dev,yaml]==2.2.2", "psutil"] +dependencies = ["corio[api,caching,debug,logging,mqtt,sets,version.dev,yaml]~=2.3.0", "psutil"] [[project.authors]] name = "Frontmatter AI" From 09f451348b8a702eb2f635c6b8260df1138e8ac4 Mon Sep 17 00:00:00 2001 From: Edward Brown Date: Sat, 9 May 2026 16:05:17 +0100 Subject: [PATCH 22/40] Release version 0.3.8 --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 753a64e..dc58141 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ requires = ["setuptools>=82", "wheel"] build-backend = "setuptools.build_meta" [tool.corio.metadata] -version = "0.3.8-alpha000" +version = "0.3.8" port = 6 base = "python" description = "Home Assistant Control Objects" @@ -38,7 +38,7 @@ env_list = [] [project] name = "haco" -version = "0.3.8-alpha000" +version = "0.3.8" description = "Home Assistant Control Objects" readme = "README.md" license = "Apache-2.0" From 26a93e9a89f881f85166d4dbfc6450e8d60063c1 Mon Sep 17 00:00:00 2001 From: Edward Brown Date: Sat, 9 May 2026 16:43:53 +0100 Subject: [PATCH 23/40] Update test dep --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index dc58141..866151c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -50,7 +50,7 @@ name = "Frontmatter AI" email = "innovative.fowler@mask.pro.fmtr.dev" [project.optional-dependencies] -test = ["pytest>=8.0", "pytest-cov>=5.0"] +test = ["corio[test]"] [project.urls] Homepage = "https://github.com/fmtr/haco" From b4b7c44a64b282ab3a849d229759fc7d84bb651b Mon Sep 17 00:00:00 2001 From: Edward Brown Date: Sun, 17 May 2026 13:38:57 +0100 Subject: [PATCH 24/40] Fix device announce data not being including in control announce --- haco/control.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/haco/control.py b/haco/control.py index 009cd02..114d62e 100644 --- a/haco/control.py +++ b/haco/control.py @@ -30,7 +30,7 @@ class Control(Base, Generic[DeviceT]): name: str icon: str | None = None - device: DeviceT | None = Field(default=None, exclude=True, repr=False) + device: DeviceT | None = Field(default=None, repr=False) capabilities: list = Field(default_factory=list, exclude=True, repr=False) unique_id: str | None = None availability_topic: str | None = None From 57a5f5c3299ba643eb14efc77aa76648a61217ca Mon Sep 17 00:00:00 2001 From: Edward Brown Date: Sun, 17 May 2026 13:39:47 +0100 Subject: [PATCH 25/40] Release version 0.3.9 --- pyproject.toml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 866151c..0702c72 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ requires = ["setuptools>=82", "wheel"] build-backend = "setuptools.build_meta" [tool.corio.metadata] -version = "0.3.8" +version = "0.3.9" port = 6 base = "python" description = "Home Assistant Control Objects" @@ -38,19 +38,19 @@ env_list = [] [project] name = "haco" -version = "0.3.8" +version = "0.3.9" description = "Home Assistant Control Objects" readme = "README.md" license = "Apache-2.0" keywords = ["homeassistant", "controls", "python", "tasmota"] -dependencies = ["corio[api,caching,debug,logging,mqtt,sets,version.dev,yaml]~=2.3.0", "psutil"] +dependencies = ["corio[api,caching,debug,logging,mqtt,sets,version.dev,yaml]~=2.3.6", "psutil"] [[project.authors]] name = "Frontmatter AI" email = "innovative.fowler@mask.pro.fmtr.dev" [project.optional-dependencies] -test = ["corio[test]"] +test = ["corio[test]~=2.3.6"] [project.urls] Homepage = "https://github.com/fmtr/haco" From aacb79ab61ed2f672a772970073b6ca778789ed4 Mon Sep 17 00:00:00 2001 From: Edward Brown Date: Sun, 17 May 2026 13:42:50 +0100 Subject: [PATCH 26/40] Add unit test to ensure device announce data included in control announce --- haco/tests/test_pydantic_models.py | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/haco/tests/test_pydantic_models.py b/haco/tests/test_pydantic_models.py index 1c33d4e..7893131 100644 --- a/haco/tests/test_pydantic_models.py +++ b/haco/tests/test_pydantic_models.py @@ -31,6 +31,10 @@ def test_switch_announce_payload_matches_expected(client_stub): "icon": "mdi:power", "unique_id": "dev-main", "availability_topic": "root/status", + "device": { + "name": "Dev", + "identifiers": ["dev"], + }, "state_topic": "root/client/dev/main/default/state", "command_topic": "root/client/dev/main/default/command", } @@ -59,10 +63,34 @@ def test_climate_announce_payload_has_expected_ha_keys(client_stub): "power_state_topic", } assert expected_subset.issubset(set(data)) - assert not any(key in data for key in {"capabilities", "subscriptions", "device", "parent"}) + assert not any(key in data for key in {"capabilities", "subscriptions", "parent"}) assert not any(callable(value) for value in data.values()) +def test_control_announce_includes_device_announce_data(client_stub): + switch = Switch(name="Main") + device = Device( + name="Dev", + manufacturer="ACME", + model="Model X", + sw_version="1.2.3", + controls=[switch], + ) + device.set_parent(client_stub) + + data = switch.get_announce() + assert data["device"] == { + "name": "Dev", + "manufacturer": "ACME", + "model": "Model X", + "sw_version": "1.2.3", + "identifiers": ["dev"], + } + assert "controls" not in data["device"] + assert "parent" not in data["device"] + assert "subscriptions" not in data["device"] + + def test_model_dump_excludes_runtime_extra_attributes(): switch = Switch(name="Main") switch.dynamic_callback = lambda value: value From 953d31db553d8a657cb14c728872f6c1f27307bf Mon Sep 17 00:00:00 2001 From: Edward Brown Date: Mon, 18 May 2026 11:57:19 +0100 Subject: [PATCH 27/40] Fix README typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d77f9f3..e7c780a 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # `haco` Home Assistant Control Objects -`haco` is a to greatly simplify the process of exposing Home Assistant controls (e.g. Pull-down Lists, Number Sliders, Sensors, etc.) from a device - and handling the communication between both sides. +`haco` greatly simplifies the process of exposing Home Assistant controls (e.g. Pull-down Lists, Number Sliders, Sensors, etc.) from a device - and handling the communication between both sides. While the current implementation is in Python, the capability definitions for controls are designed to be shared across different languages. Support for additional languages (namely native support for Tasmota Berry) is planned. From 1dc5b3711c128b080657fb14791828d17efa678e Mon Sep 17 00:00:00 2001 From: Edward Brown Date: Sat, 15 Aug 2026 12:35:10 +0100 Subject: [PATCH 28/40] Release version 0.3.10-alpha000 --- pyproject.toml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 0702c72..560ffab 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ requires = ["setuptools>=82", "wheel"] build-backend = "setuptools.build_meta" [tool.corio.metadata] -version = "0.3.9" +version = "0.3.10-alpha000" port = 6 base = "python" description = "Home Assistant Control Objects" @@ -38,19 +38,19 @@ env_list = [] [project] name = "haco" -version = "0.3.9" +version = "0.3.10-alpha000" description = "Home Assistant Control Objects" readme = "README.md" license = "Apache-2.0" keywords = ["homeassistant", "controls", "python", "tasmota"] -dependencies = ["corio[api,caching,debug,logging,mqtt,sets,version.dev,yaml]~=2.3.6", "psutil"] +dependencies = ["corio[api,caching,debug,logging,mqtt,sets,version.dev,yaml]~=2.7.3", "psutil"] [[project.authors]] name = "Frontmatter AI" email = "innovative.fowler@mask.pro.fmtr.dev" [project.optional-dependencies] -test = ["corio[test]~=2.3.6"] +test = ["corio[test]~=2.7.3"] [project.urls] Homepage = "https://github.com/fmtr/haco" From 5fc71ce126e994006b4d680947442deb8c33b591 Mon Sep 17 00:00:00 2001 From: Edward Brown Date: Sat, 15 Aug 2026 12:37:36 +0100 Subject: [PATCH 29/40] Release version 0.4.0 --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 560ffab..5e67c3c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ requires = ["setuptools>=82", "wheel"] build-backend = "setuptools.build_meta" [tool.corio.metadata] -version = "0.3.10-alpha000" +version = "0.4.0" port = 6 base = "python" description = "Home Assistant Control Objects" @@ -38,7 +38,7 @@ env_list = [] [project] name = "haco" -version = "0.3.10-alpha000" +version = "0.4.0" description = "Home Assistant Control Objects" readme = "README.md" license = "Apache-2.0" From 0d6872797a4354c6f16b33b29321dd5bd933bc95 Mon Sep 17 00:00:00 2001 From: Edward Brown Date: Sun, 16 Aug 2026 16:15:50 +0100 Subject: [PATCH 30/40] Update paths import statement --- haco/paths.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/haco/paths.py b/haco/paths.py index aa2a0b4..25f0abf 100644 --- a/haco/paths.py +++ b/haco/paths.py @@ -3,6 +3,6 @@ Path definitions for the haco library. """ -from corio import sets +from corio import paths -paths = sets.PackagePaths() +paths = paths.PackagePaths() From c3299ab0c1f0aa248db9aea78e2b941569159d6b Mon Sep 17 00:00:00 2001 From: Edward Brown Date: Sun, 16 Aug 2026 16:20:38 +0100 Subject: [PATCH 31/40] Release version 0.4.1 --- pyproject.toml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 5e67c3c..21273e7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ requires = ["setuptools>=82", "wheel"] build-backend = "setuptools.build_meta" [tool.corio.metadata] -version = "0.4.0" +version = "0.4.1" port = 6 base = "python" description = "Home Assistant Control Objects" @@ -24,7 +24,7 @@ include = ["haco*"] namespaces = false [tool.setuptools.package-data] -haco = ["pyproject.package.toml"] +haco = ["pyproject.package.toml", "assets/**"] [tool.uv.sources.corio] path = "../corio" @@ -38,19 +38,19 @@ env_list = [] [project] name = "haco" -version = "0.4.0" +version = "0.4.1" description = "Home Assistant Control Objects" readme = "README.md" license = "Apache-2.0" keywords = ["homeassistant", "controls", "python", "tasmota"] -dependencies = ["corio[api,caching,debug,logging,mqtt,sets,version.dev,yaml]~=2.7.3", "psutil"] +dependencies = ["corio[api,caching,debug,logging,mqtt,sets,version.dev,yaml]~=2.8.0", "psutil"] [[project.authors]] name = "Frontmatter AI" email = "innovative.fowler@mask.pro.fmtr.dev" [project.optional-dependencies] -test = ["corio[test]~=2.7.3"] +test = ["corio[test]~=2.8.0"] [project.urls] Homepage = "https://github.com/fmtr/haco" From 61ea555cf2e24c7c1fd24a923a242c78694978de Mon Sep 17 00:00:00 2001 From: Edward Brown Date: Mon, 17 Aug 2026 18:21:33 +0100 Subject: [PATCH 32/40] Release version 0.4.2 --- pyproject.toml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 21273e7..6b7e94f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ requires = ["setuptools>=82", "wheel"] build-backend = "setuptools.build_meta" [tool.corio.metadata] -version = "0.4.1" +version = "0.4.2" port = 6 base = "python" description = "Home Assistant Control Objects" @@ -38,19 +38,19 @@ env_list = [] [project] name = "haco" -version = "0.4.1" +version = "0.4.2" description = "Home Assistant Control Objects" readme = "README.md" license = "Apache-2.0" keywords = ["homeassistant", "controls", "python", "tasmota"] -dependencies = ["corio[api,caching,debug,logging,mqtt,sets,version.dev,yaml]~=2.8.0", "psutil"] +dependencies = ["corio[api,caching,debug,logging,mqtt,sets,version.dev,yaml]~=2.8.2", "psutil"] [[project.authors]] name = "Frontmatter AI" email = "innovative.fowler@mask.pro.fmtr.dev" [project.optional-dependencies] -test = ["corio[test]~=2.8.0"] +test = ["corio[test]~=2.8.2"] [project.urls] Homepage = "https://github.com/fmtr/haco" From 84402eedcc8889bff3bfc3c89176cb6b30eb2665 Mon Sep 17 00:00:00 2001 From: Edward Brown Date: Wed, 28 Oct 2026 14:01:03 +0000 Subject: [PATCH 33/40] Release version 0.4.3 --- CHANGELOG.md | 2 +- docs/changelog/0.4.3.md | 1 + pyproject.toml | 8 ++++---- 3 files changed, 6 insertions(+), 5 deletions(-) create mode 100644 docs/changelog/0.4.3.md diff --git a/CHANGELOG.md b/CHANGELOG.md index 0904e18..79e9d1e 120000 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1 +1 @@ -docs/changelog/0.3.4.md \ No newline at end of file +docs/changelog/0.4.3.md \ No newline at end of file diff --git a/docs/changelog/0.4.3.md b/docs/changelog/0.4.3.md new file mode 100644 index 0000000..0b09f2b --- /dev/null +++ b/docs/changelog/0.4.3.md @@ -0,0 +1 @@ +- Updated the Corio dependency to the current compatible release. diff --git a/pyproject.toml b/pyproject.toml index 6b7e94f..21656a9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ requires = ["setuptools>=82", "wheel"] build-backend = "setuptools.build_meta" [tool.corio.metadata] -version = "0.4.2" +version = "0.4.3" port = 6 base = "python" description = "Home Assistant Control Objects" @@ -38,19 +38,19 @@ env_list = [] [project] name = "haco" -version = "0.4.2" +version = "0.4.3" description = "Home Assistant Control Objects" readme = "README.md" license = "Apache-2.0" keywords = ["homeassistant", "controls", "python", "tasmota"] -dependencies = ["corio[api,caching,debug,logging,mqtt,sets,version.dev,yaml]~=2.8.2", "psutil"] +dependencies = ["corio[api,caching,debug,logging,mqtt,sets,version.dev,yaml]~=2.15.9", "psutil"] [[project.authors]] name = "Frontmatter AI" email = "innovative.fowler@mask.pro.fmtr.dev" [project.optional-dependencies] -test = ["corio[test]~=2.8.2"] +test = ["corio[test]~=2.15.9"] [project.urls] Homepage = "https://github.com/fmtr/haco" From 8daac7342d33ae04c325e690eec9c0f001a0eb21 Mon Sep 17 00:00:00 2001 From: Edward Brown Date: Wed, 28 Oct 2026 16:10:32 +0000 Subject: [PATCH 34/40] Fix Corio package path logging --- haco/obs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/haco/obs.py b/haco/obs.py index b0b1d93..121b056 100644 --- a/haco/obs.py +++ b/haco/obs.py @@ -10,7 +10,7 @@ from haco.paths import paths debug.trace() logger = logs.get_logger( - name=paths.name_ns, + name=paths.name, stream=Constants.DEVELOPMENT, version=paths.metadata.version, ) From 362081a883161672cecc9e44108b7f6a91b33fbf Mon Sep 17 00:00:00 2001 From: Edward Brown Date: Wed, 28 Oct 2026 16:11:35 +0000 Subject: [PATCH 35/40] Add move completion tests --- haco/tests/test_move_complete.py | 155 +++++++++++++++++++++++++++++++ 1 file changed, 155 insertions(+) create mode 100644 haco/tests/test_move_complete.py diff --git a/haco/tests/test_move_complete.py b/haco/tests/test_move_complete.py new file mode 100644 index 0000000..47d2bbe --- /dev/null +++ b/haco/tests/test_move_complete.py @@ -0,0 +1,155 @@ +from __future__ import annotations + +import asyncio +from types import SimpleNamespace +from unittest.mock import AsyncMock + +import pytest + +from corio import Path + +from haco.device import Device +from haco.switch import Switch + + +def run(coro): + return asyncio.run(coro) + + +def message(payload: str) -> SimpleNamespace: + return SimpleNamespace(payload=payload.encode("utf-8")) + + +@pytest.fixture +def client_stub(): + return SimpleNamespace( + topic=Path("root/client"), + will=SimpleNamespace(topic="root/status"), + publish=AsyncMock(), + ) + + +_UNSET = object() + + +def build_switch(client_stub, *, command=_UNSET, state=_UNSET): + switch = Switch(name="Main") + if command is not _UNSET: + switch.command = command + if state is not _UNSET: + switch.state = state + + device = Device(name="Dev", controls=[switch]) + device.set_parent(client_stub) + return switch + + +def test_move_complete_sync_command_updates_state_and_publishes(client_stub): + seen_command = [] + seen_state = [] + + def command(value): + seen_command.append(value) + return value + + def state(value): + seen_state.append(value) + return value + + switch = build_switch(client_stub, command=command, state=state) + command_topic = switch.capabilities[0].command + + run(command_topic.handle(message("ON"))) + + assert seen_command == [True] + assert seen_state == [True] + client_stub.publish.assert_awaited_once_with( + "root/client/dev/main/default/state", + "ON", + retain=True, + ) + + +def test_move_complete_async_command_updates_state_and_publishes(client_stub): + seen_command = [] + seen_state = [] + + async def command(value): + seen_command.append(value) + return not value + + async def state(value): + seen_state.append(value) + return value + + switch = build_switch(client_stub, command=command, state=state) + command_topic = switch.capabilities[0].command + + run(command_topic.handle(message("OFF"))) + + assert seen_command == [False] + assert seen_state == [True] + client_stub.publish.assert_awaited_once_with( + "root/client/dev/main/default/state", + "ON", + retain=True, + ) + + +def test_move_complete_state_handler_sync_publish_path(client_stub): + seen_state = [] + + def state(value): + seen_state.append(value) + return value + + switch = build_switch(client_stub, state=state) + state_topic = switch.capabilities[0].state + + value_raw = run(state_topic.handle(False)) + + assert seen_state == [False] + assert value_raw == "OFF" + client_stub.publish.assert_awaited_once_with( + "root/client/dev/main/default/state", + "OFF", + retain=True, + ) + + +def test_move_complete_command_missing_handler_stops_before_state(client_stub): + seen_state = [] + switch = build_switch( + client_stub, + command=None, + state=lambda value: seen_state.append(value) or value, + ) + command_topic = switch.capabilities[0].command + + result = run(command_topic.handle(message("ON"))) + + assert result is None + assert seen_state == [] + client_stub.publish.assert_not_awaited() + + +def test_move_complete_state_missing_handler_stops(client_stub): + switch = build_switch(client_stub, state=None) + state_topic = switch.capabilities[0].state + + result = run(state_topic.handle(True)) + + assert result is None + client_stub.publish.assert_not_awaited() + + +def test_move_complete_not_implemented_command_stops_before_state(client_stub): + seen_state = [] + switch = build_switch(client_stub, state=lambda value: seen_state.append(value) or value) + command_topic = switch.capabilities[0].command + + result = run(command_topic.handle(message("ON"))) + + assert result is None + assert seen_state == [] + client_stub.publish.assert_not_awaited() From d13fd9a236ab33d8f2a9a002b0410311ae897e5a Mon Sep 17 00:00:00 2001 From: Edward Brown Date: Wed, 28 Oct 2026 16:12:44 +0000 Subject: [PATCH 36/40] Release version 0.4.4 --- CHANGELOG.md | 2 +- docs/changelog/0.4.4.md | 2 ++ pyproject.toml | 12 ++++++++---- 3 files changed, 11 insertions(+), 5 deletions(-) create mode 100644 docs/changelog/0.4.4.md diff --git a/CHANGELOG.md b/CHANGELOG.md index 79e9d1e..1bd4739 120000 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1 +1 @@ -docs/changelog/0.4.3.md \ No newline at end of file +docs/changelog/0.4.4.md \ No newline at end of file diff --git a/docs/changelog/0.4.4.md b/docs/changelog/0.4.4.md new file mode 100644 index 0000000..be96460 --- /dev/null +++ b/docs/changelog/0.4.4.md @@ -0,0 +1,2 @@ +- Updated Corio integration for the current package paths API. +- Added an automated test environment for the package test suite. diff --git a/pyproject.toml b/pyproject.toml index 21656a9..d8127a0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ requires = ["setuptools>=82", "wheel"] build-backend = "setuptools.build_meta" [tool.corio.metadata] -version = "0.4.3" +version = "0.4.4" port = 6 base = "python" description = "Home Assistant Control Objects" @@ -18,6 +18,9 @@ is_dockerhub = false [tool.corio.metadata.setup] +[tool.corio.dependencies] +test = ["corio[test]"] + [tool.setuptools.packages.find] where = ["."] include = ["haco*"] @@ -38,19 +41,20 @@ env_list = [] [project] name = "haco" -version = "0.4.3" +version = "0.4.4" description = "Home Assistant Control Objects" readme = "README.md" license = "Apache-2.0" keywords = ["homeassistant", "controls", "python", "tasmota"] -dependencies = ["corio[api,caching,debug,logging,mqtt,sets,version.dev,yaml]~=2.15.9", "psutil"] +dependencies = [] [[project.authors]] name = "Frontmatter AI" email = "innovative.fowler@mask.pro.fmtr.dev" [project.optional-dependencies] -test = ["corio[test]~=2.15.9"] +test = ["corio[test]~=2.15.10"] +all = ["corio[test]~=2.15.10"] [project.urls] Homepage = "https://github.com/fmtr/haco" From a8359d46b1021035c81c77dd078554225cb878b0 Mon Sep 17 00:00:00 2001 From: Edward Brown Date: Wed, 28 Oct 2026 17:40:59 +0000 Subject: [PATCH 37/40] Release version 0.4.5 --- CHANGELOG.md | 2 +- docs/changelog/0.4.5.md | 2 ++ pyproject.toml | 10 +++------- 3 files changed, 6 insertions(+), 8 deletions(-) create mode 100644 docs/changelog/0.4.5.md diff --git a/CHANGELOG.md b/CHANGELOG.md index 1bd4739..6fa8d06 120000 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1 +1 @@ -docs/changelog/0.4.4.md \ No newline at end of file +docs/changelog/0.4.5.md \ No newline at end of file diff --git a/docs/changelog/0.4.5.md b/docs/changelog/0.4.5.md new file mode 100644 index 0000000..cbe3fb3 --- /dev/null +++ b/docs/changelog/0.4.5.md @@ -0,0 +1,2 @@ +- Restored the runtime dependency metadata for installations. +- Added the automated Haco test environment to release validation. diff --git a/pyproject.toml b/pyproject.toml index d8127a0..1ab8771 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ requires = ["setuptools>=82", "wheel"] build-backend = "setuptools.build_meta" [tool.corio.metadata] -version = "0.4.4" +version = "0.4.5" port = 6 base = "python" description = "Home Assistant Control Objects" @@ -18,9 +18,6 @@ is_dockerhub = false [tool.corio.metadata.setup] -[tool.corio.dependencies] -test = ["corio[test]"] - [tool.setuptools.packages.find] where = ["."] include = ["haco*"] @@ -41,12 +38,12 @@ env_list = [] [project] name = "haco" -version = "0.4.4" +version = "0.4.5" description = "Home Assistant Control Objects" readme = "README.md" license = "Apache-2.0" keywords = ["homeassistant", "controls", "python", "tasmota"] -dependencies = [] +dependencies = ["corio[api,caching,debug,logging,mqtt,sets,version.dev,yaml]~=2.15.10", "psutil"] [[project.authors]] name = "Frontmatter AI" @@ -54,7 +51,6 @@ email = "innovative.fowler@mask.pro.fmtr.dev" [project.optional-dependencies] test = ["corio[test]~=2.15.10"] -all = ["corio[test]~=2.15.10"] [project.urls] Homepage = "https://github.com/fmtr/haco" From 06e5d43bca5dfe87c870d0673c539e0204836f61 Mon Sep 17 00:00:00 2001 From: Edward Brown Date: Wed, 28 Oct 2026 18:19:03 +0000 Subject: [PATCH 38/40] Configure Haco development environment --- pyproject.toml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 1ab8771..ef91fb6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,9 +32,12 @@ editable = true [tool.tox] requires = ["tox>=4.22", "tox-uv>=1"] -env_list = [] +env_list = ["haco"] -[tool.tox.env] +[tool.tox.env.haco] +description = "Run haco tests." +deps = ["corio[test]~=2.15.10"] +commands = [["python", "-m", "pytest", "-q", "{posargs:haco/tests}"]] [project] name = "haco" @@ -50,9 +53,13 @@ name = "Frontmatter AI" email = "innovative.fowler@mask.pro.fmtr.dev" [project.optional-dependencies] +dev = ["corio[infra]~=2.15.10"] test = ["corio[test]~=2.15.10"] [project.urls] Homepage = "https://github.com/fmtr/haco" [project.scripts] + +[dependency-groups] +dev = ["corio[infra]~=2.15.10"] From 9dd13b4890c959372d0bdc6714307ed50b148f8f Mon Sep 17 00:00:00 2001 From: Edward Brown Date: Fri, 13 Nov 2026 13:14:12 +0000 Subject: [PATCH 39/40] Release version 0.4.6-alpha.0 --- pyproject.toml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index ef91fb6..507fafc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ requires = ["setuptools>=82", "wheel"] build-backend = "setuptools.build_meta" [tool.corio.metadata] -version = "0.4.5" +version = "0.4.6-alpha.0" port = 6 base = "python" description = "Home Assistant Control Objects" @@ -15,6 +15,7 @@ services = [] keywords = ["homeassistant", "controls", "python", "tasmota"] is_pypi = true is_dockerhub = false +editables = ["corio"] [tool.corio.metadata.setup] @@ -30,31 +31,35 @@ haco = ["pyproject.package.toml", "assets/**"] path = "../corio" editable = true +[tool.uv.config-settings-package.corio] +editable_mode = "compat" + [tool.tox] requires = ["tox>=4.22", "tox-uv>=1"] env_list = ["haco"] [tool.tox.env.haco] description = "Run haco tests." -deps = ["corio[test]~=2.15.10"] +deps = ["corio[test]~=2.17.8"] commands = [["python", "-m", "pytest", "-q", "{posargs:haco/tests}"]] +install_command = ["uv", "pip", "install", "--refresh-package", "corio", "{opts}", "{packages}"] [project] name = "haco" -version = "0.4.5" +version = "0.4.6-alpha.0" description = "Home Assistant Control Objects" readme = "README.md" license = "Apache-2.0" keywords = ["homeassistant", "controls", "python", "tasmota"] -dependencies = ["corio[api,caching,debug,logging,mqtt,sets,version.dev,yaml]~=2.15.10", "psutil"] +dependencies = ["corio[api,caching,debug,logging,mqtt,sets,yaml]~=2.17.8", "psutil"] [[project.authors]] name = "Frontmatter AI" email = "innovative.fowler@mask.pro.fmtr.dev" [project.optional-dependencies] -dev = ["corio[infra]~=2.15.10"] -test = ["corio[test]~=2.15.10"] +dev = ["corio[infra]~=2.17.8"] +test = ["corio[test]~=2.17.8"] [project.urls] Homepage = "https://github.com/fmtr/haco" @@ -62,4 +67,4 @@ Homepage = "https://github.com/fmtr/haco" [project.scripts] [dependency-groups] -dev = ["corio[infra]~=2.15.10"] +dev = ["corio[infra]~=2.17.8"] From a8c7f4ae6af3b6e8ba1eb0445f97c24b0dfd3048 Mon Sep 17 00:00:00 2001 From: Edward Brown Date: Fri, 13 Nov 2026 14:02:21 +0000 Subject: [PATCH 40/40] Release version 0.4.6 --- CHANGELOG.md | 2 +- docs/changelog/0.4.6.md | 1 + pyproject.toml | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 docs/changelog/0.4.6.md diff --git a/CHANGELOG.md b/CHANGELOG.md index 6fa8d06..f23c2e4 120000 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1 +1 @@ -docs/changelog/0.4.5.md \ No newline at end of file +docs/changelog/0.4.6.md \ No newline at end of file diff --git a/docs/changelog/0.4.6.md b/docs/changelog/0.4.6.md new file mode 100644 index 0000000..1885d7a --- /dev/null +++ b/docs/changelog/0.4.6.md @@ -0,0 +1 @@ +- Update the Corio dependency to its latest stable release. diff --git a/pyproject.toml b/pyproject.toml index 507fafc..450ff74 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ requires = ["setuptools>=82", "wheel"] build-backend = "setuptools.build_meta" [tool.corio.metadata] -version = "0.4.6-alpha.0" +version = "0.4.6" port = 6 base = "python" description = "Home Assistant Control Objects" @@ -46,7 +46,7 @@ install_command = ["uv", "pip", "install", "--refresh-package", "corio", "{opts} [project] name = "haco" -version = "0.4.6-alpha.0" +version = "0.4.6" description = "Home Assistant Control Objects" readme = "README.md" license = "Apache-2.0"