mirror of
https://github.com/fmtr/haco.git
synced 2026-11-26 18:06:26 -05:00
Compare commits
40 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a8c7f4ae6a | ||
|
|
9dd13b4890 | ||
|
|
06e5d43bca | ||
|
|
a8359d46b1 | ||
|
|
d13fd9a236 | ||
|
|
362081a883 | ||
|
|
8daac7342d | ||
|
|
84402eedcc | ||
|
|
61ea555cf2 | ||
|
|
c3299ab0c1 | ||
|
|
0d6872797a | ||
|
|
5fc71ce126 | ||
|
|
1dc5b3711c | ||
|
|
953d31db55 | ||
|
|
aacb79ab61 | ||
|
|
57a5f5c329 | ||
|
|
b4b7c44a64 | ||
|
|
26a93e9a89 | ||
|
|
09f451348b | ||
|
|
d9a8561e41 | ||
|
|
e9440745c3 | ||
|
|
4ca01121e1 | ||
|
|
b41b852735 | ||
|
|
efd3030406 | ||
|
|
d5b6cee0a1 | ||
|
|
8bd1ba75d9 | ||
|
|
107e62081d | ||
|
|
bf87c83251 | ||
|
|
c82b8f9a0b | ||
|
|
243cb5982d | ||
|
|
10cd893a90 | ||
|
|
cafe6fbcec | ||
|
|
c9f3385661 | ||
|
|
f60594fc45 | ||
|
|
76a099433f | ||
|
|
d6fe7dbfee | ||
|
|
4c39fa60c3 | ||
|
|
3b2dd86669 | ||
|
|
5e202dfc1b | ||
|
|
893c50ad87 |
16 changed files with 313 additions and 32 deletions
|
|
@ -1 +1 @@
|
||||||
docs/changelog/0.3.0.md
|
docs/changelog/0.4.6.md
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# `haco` Home Assistant Control Objects
|
# `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.
|
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.
|
||||||
|
|
||||||
|
|
|
||||||
3
docs/changelog/0.3.4.md
Normal file
3
docs/changelog/0.3.4.md
Normal file
|
|
@ -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.
|
||||||
|
|
||||||
1
docs/changelog/0.4.3.md
Normal file
1
docs/changelog/0.4.3.md
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
- Updated the Corio dependency to the current compatible release.
|
||||||
2
docs/changelog/0.4.4.md
Normal file
2
docs/changelog/0.4.4.md
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
- Updated Corio integration for the current package paths API.
|
||||||
|
- Added an automated test environment for the package test suite.
|
||||||
2
docs/changelog/0.4.5.md
Normal file
2
docs/changelog/0.4.5.md
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
- Restored the runtime dependency metadata for installations.
|
||||||
|
- Added the automated Haco test environment to release validation.
|
||||||
1
docs/changelog/0.4.6.md
Normal file
1
docs/changelog/0.4.6.md
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
- Update the Corio dependency to its latest stable release.
|
||||||
|
|
@ -4,7 +4,7 @@ from typing import TYPE_CHECKING, Type, ClassVar
|
||||||
|
|
||||||
from pydantic import Field
|
from pydantic import Field
|
||||||
|
|
||||||
from corio.iterator_tools import strip_none
|
from corio.iterator import strip_none
|
||||||
|
|
||||||
from haco.base import Base
|
from haco.base import Base
|
||||||
from haco.topics import AnnounceTopicState, AnnounceTopicCommand
|
from haco.topics import AnnounceTopicState, AnnounceTopicCommand
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ from pydantic import Field
|
||||||
|
|
||||||
from corio import Constants
|
from corio import Constants
|
||||||
from corio import Path
|
from corio import Path
|
||||||
from corio.json_tools import to_json
|
from corio.jsn import to_json
|
||||||
|
|
||||||
from haco.base import Base
|
from haco.base import Base
|
||||||
from haco.capabilities import Capability
|
from haco.capabilities import Capability
|
||||||
|
|
@ -30,7 +30,7 @@ class Control(Base, Generic[DeviceT]):
|
||||||
|
|
||||||
name: str
|
name: str
|
||||||
icon: str | None = None
|
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)
|
capabilities: list = Field(default_factory=list, exclude=True, repr=False)
|
||||||
unique_id: str | None = None
|
unique_id: str | None = None
|
||||||
availability_topic: str | None = None
|
availability_topic: str | None = None
|
||||||
|
|
|
||||||
|
|
@ -3,14 +3,14 @@
|
||||||
Observability and logging setup for the haco library.
|
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
|
from haco.paths import paths
|
||||||
|
|
||||||
debug.trace()
|
debug.trace()
|
||||||
|
|
||||||
logger = logging.get_logger(
|
logger = logs.get_logger(
|
||||||
name=paths.name_ns,
|
name=paths.name,
|
||||||
stream=Constants.DEVELOPMENT,
|
stream=Constants.DEVELOPMENT,
|
||||||
version=paths.metadata.version,
|
version=paths.metadata.version,
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,6 @@
|
||||||
Path definitions for the haco library.
|
Path definitions for the haco library.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
from corio import sets
|
from corio import paths
|
||||||
|
|
||||||
paths = sets.PackagePaths()
|
paths = paths.PackagePaths()
|
||||||
|
|
|
||||||
155
haco/tests/test_move_complete.py
Normal file
155
haco/tests/test_move_complete.py
Normal file
|
|
@ -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()
|
||||||
112
haco/tests/test_pydantic_models.py
Normal file
112
haco/tests/test_pydantic_models.py
Normal file
|
|
@ -0,0 +1,112 @@
|
||||||
|
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",
|
||||||
|
"device": {
|
||||||
|
"name": "Dev",
|
||||||
|
"identifiers": ["dev"],
|
||||||
|
},
|
||||||
|
"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", "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
|
||||||
|
|
||||||
|
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")
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
import string
|
import string
|
||||||
from typing import Callable
|
from typing import Callable
|
||||||
|
|
||||||
from corio import json
|
from corio import jsn
|
||||||
from corio.datatype_tools import to_bool
|
from corio.datatype import to_bool
|
||||||
|
|
||||||
CHARS_ALLOWED = string.ascii_lowercase + string.digits
|
CHARS_ALLOWED = string.ascii_lowercase + string.digits
|
||||||
SEPS = '_- /'
|
SEPS = '_- /'
|
||||||
|
|
@ -76,8 +76,8 @@ class ConvertersNumeric(Converters):
|
||||||
Converters for numeric values.
|
Converters for numeric values.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
command: Callable = json.from_json
|
command: Callable = jsn.from_json
|
||||||
state: Callable = json.to_json
|
state: Callable = jsn.to_json
|
||||||
|
|
||||||
def get_prefix(io: str) -> str:
|
def get_prefix(io: str) -> str:
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ requires = ["setuptools>=82", "wheel"]
|
||||||
build-backend = "setuptools.build_meta"
|
build-backend = "setuptools.build_meta"
|
||||||
|
|
||||||
[tool.corio.metadata]
|
[tool.corio.metadata]
|
||||||
version = "0.3.2"
|
version = "0.4.6"
|
||||||
port = 6
|
port = 6
|
||||||
base = "python"
|
base = "python"
|
||||||
description = "Home Assistant Control Objects"
|
description = "Home Assistant Control Objects"
|
||||||
|
|
@ -15,18 +15,7 @@ services = []
|
||||||
keywords = ["homeassistant", "controls", "python", "tasmota"]
|
keywords = ["homeassistant", "controls", "python", "tasmota"]
|
||||||
is_pypi = true
|
is_pypi = true
|
||||||
is_dockerhub = false
|
is_dockerhub = false
|
||||||
|
editables = ["corio"]
|
||||||
[[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.corio.metadata.setup]
|
||||||
|
|
||||||
|
|
@ -36,30 +25,46 @@ include = ["haco*"]
|
||||||
namespaces = false
|
namespaces = false
|
||||||
|
|
||||||
[tool.setuptools.package-data]
|
[tool.setuptools.package-data]
|
||||||
haco = ["pyproject.toml"]
|
haco = ["pyproject.package.toml", "assets/**"]
|
||||||
|
|
||||||
[tool.uv.sources.corio]
|
[tool.uv.sources.corio]
|
||||||
path = "../corio"
|
path = "../corio"
|
||||||
editable = true
|
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.17.8"]
|
||||||
|
commands = [["python", "-m", "pytest", "-q", "{posargs:haco/tests}"]]
|
||||||
|
install_command = ["uv", "pip", "install", "--refresh-package", "corio", "{opts}", "{packages}"]
|
||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "haco"
|
name = "haco"
|
||||||
version = "0.3.2"
|
version = "0.4.6"
|
||||||
description = "Home Assistant Control Objects"
|
description = "Home Assistant Control Objects"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
license = "Apache-2.0"
|
license = "Apache-2.0"
|
||||||
license-files = ["LICENSE"]
|
|
||||||
keywords = ["homeassistant", "controls", "python", "tasmota"]
|
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,yaml]~=2.17.8", "psutil"]
|
||||||
|
|
||||||
[[project.authors]]
|
[[project.authors]]
|
||||||
name = "Frontmatter AI"
|
name = "Frontmatter AI"
|
||||||
email = "innovative.fowler@mask.pro.fmtr.dev"
|
email = "innovative.fowler@mask.pro.fmtr.dev"
|
||||||
|
|
||||||
[project.optional-dependencies]
|
[project.optional-dependencies]
|
||||||
test = ["pytest>=8.0", "pytest-cov>=5.0"]
|
dev = ["corio[infra]~=2.17.8"]
|
||||||
|
test = ["corio[test]~=2.17.8"]
|
||||||
|
|
||||||
[project.urls]
|
[project.urls]
|
||||||
Homepage = "https://github.com/fmtr/haco"
|
Homepage = "https://github.com/fmtr/haco"
|
||||||
|
|
||||||
[project.scripts]
|
[project.scripts]
|
||||||
|
|
||||||
|
[dependency-groups]
|
||||||
|
dev = ["corio[infra]~=2.17.8"]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue