Skip to content

Commit 6117eec

Browse files
committed
fix: fix stop call
1 parent a408da3 commit 6117eec

File tree

6 files changed

+9
-15
lines changed

6 files changed

+9
-15
lines changed

custom_components/hella_onyx/api_connector.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
"""API connector for the ONYX integration."""
22
import logging
33

4+
from typing import Any
5+
46
from homeassistant.helpers.aiohttp_client import async_get_clientsession
57
from onyx_client.client import create
68
from onyx_client.data.device_command import DeviceCommand
@@ -87,7 +89,7 @@ def set_event_callback(self, callback):
8789
"""Set the event callback."""
8890
self._client().set_event_callback(callback)
8991

90-
def stop(self):
92+
def stop(self, **kwargs: Any):
9193
"""Stop the event loop."""
9294
_LOGGER.info("Shutting down ONYX")
9395
self._client().stop()

custom_components/hella_onyx/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"documentation": "https://github.com/muhlba91/onyx-homeassistant-integration",
66
"issue_tracker": "https://github.com/muhlba91/onyx-homeassistant-integration/issues",
77
"requirements": [
8-
"onyx-client==8.0.0"
8+
"onyx-client==8.0.1"
99
],
1010
"ssdp": [],
1111
"zeroconf": [],

custom_components/hella_onyx/sensors/onyx_entity.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,6 @@ def device_info(self):
4545
"model": self._type.string(),
4646
}
4747

48-
@property
49-
def entity_id(self):
50-
"""Return the entity id of the sensor."""
51-
return self.unique_id
52-
5348
@property
5449
def unique_id(self):
5550
"""Return the unique id of the sensor."""

poetry.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ classifiers = [
2828

2929
[tool.poetry.dependencies]
3030
python = "^3.11"
31-
onyx-client = "^8.0.0"
31+
onyx-client = "^8.0.1"
3232

3333
[tool.poetry.dev-dependencies]
3434
pytest = "^7.3.1"

tests/sensors/test_onyx_entity.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@ def entity(self, api, coordinator):
3030
def test_icon(self, entity):
3131
assert entity.icon == "mdi:help"
3232

33-
def test_entity_id(self, entity):
34-
assert entity.entity_id == "uuid/Device"
35-
3633
def test_unique_id(self, entity):
3734
assert entity.unique_id == "uuid/Device"
3835

0 commit comments

Comments
 (0)