Skip to content

Commit 8ef3452

Browse files
authored
Merge pull request #26 from CM000n/fix/incorrect_type_expected_str_got_NodeStrClass
Fix: `NodeStrClass` conversion introduces by Home Assistant 2024.1
2 parents 618a3ae + 75cb35d commit 8ef3452

File tree

5 files changed

+24
-34
lines changed

5 files changed

+24
-34
lines changed

SECURITY.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ It is recommended to always use the latest stable version to benefit from the la
77

88
| Version | Supported |
99
| ------- | ------------------ |
10-
| v0.0.6 | :white_check_mark: |
10+
| v0.0.10 | :white_check_mark: |
1111

1212
## Reporting a Vulnerability
1313

custom_components/qss/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
6868
"""Set up qss."""
6969
conf = config[DOMAIN]
7070

71-
db_host = conf.get(CONF_HOST)
72-
db_port = conf.get(CONF_PORT)
71+
db_host = str(conf.get(CONF_HOST))
72+
db_port = int(conf.get(CONF_PORT))
7373

7474
entity_filter = convert_include_exclude_filter(conf)
7575

custom_components/qss/manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
"iot_class": "local_push",
88
"issue_tracker": "https://github.com/CM000n/QSS/issues",
99
"requirements": ["questdb>=1.2,<2.0", "tenacity>=8.0"],
10-
"version": "v0.0.9"
10+
"version": "v0.0.10"
1111
}

poetry.lock

+19-29
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "qss"
3-
version = "v0.0.9"
3+
version = "v0.0.10"
44
description = "QuestDB State Storage (QSS) for Home Assistant"
55
authors = ["CM000n"]
66
keywords = [

0 commit comments

Comments
 (0)