Skip to content

Commit 527986e

Browse files
dcjclaude
andcommitted
Remove ebus_sdk.mqtt shim; import MqttClient directly
The src/ebus_sdk/mqtt.py shim has been re-exporting MqttClient and AUTH_TYPE_USER_PASS from ebus-mqtt-client since 56ad978 (2026-03-14). With the upstream package stable on PyPI, drop the shim and point the in-tree imports at ebus_mqtt_client directly. Public API is unchanged: `from ebus_sdk import MqttClient` still works. Only direct `from ebus_sdk.mqtt import ...` would break, and nothing in this repo does that. tests/test_mqtt.py is removed as well; it duplicated tests that already live in ebus-mqtt-client/tests/test_client.py. The two _on_message dispatch tests that were unique to this file were ported upstream in ebus-mqtt-client 9f73f82. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 6942655 commit 527986e

4 files changed

Lines changed: 3 additions & 172 deletions

File tree

src/ebus_sdk/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
)
4141

4242
# MQTT client
43-
from .mqtt import MqttClient
43+
from ebus_mqtt_client import MqttClient
4444

4545
__version__ = "0.1.2"
4646

src/ebus_sdk/homie.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class StrEnum(str, Enum):
5555

5656
# from deprecated import deprecated
5757
from typing import Any, Callable, List, Optional, Type, Union
58-
from .mqtt import MqttClient
58+
from ebus_mqtt_client import MqttClient
5959

6060
logger = logging.getLogger("homie")
6161

@@ -1369,7 +1369,7 @@ def ebus_cfg_add_auth(cfg, username, password):
13691369
"""
13701370
Add authentication to the config dictionary
13711371
"""
1372-
from .mqtt import AUTH_TYPE_USER_PASS
1372+
from ebus_mqtt_client import AUTH_TYPE_USER_PASS
13731373

13741374
cfg["authentication"] = {
13751375
"type": AUTH_TYPE_USER_PASS,

src/ebus_sdk/mqtt.py

Lines changed: 0 additions & 5 deletions
This file was deleted.

tests/test_mqtt.py

Lines changed: 0 additions & 164 deletions
This file was deleted.

0 commit comments

Comments
 (0)