Skip to content

Commit

Permalink
24.11.1 (#462)
Browse files Browse the repository at this point in the history
  • Loading branch information
spacemanspiff2007 authored Nov 25, 2024
1 parent a92eaff commit 901417d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 3 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@ MyOpenhabRule()
```

# Changelog
#### 24.11.1 (2024-11-25)
Fixed an issue with the logging Queue

#### 24.11.0 (2024-11-22)
This is a breaking change!

Expand Down
2 changes: 1 addition & 1 deletion src/HABApp/__version__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
# Development versions contain the DEV-COUNTER postfix:
# - 24.01.0.DEV-1

__version__ = '24.11.0'
__version__ = '24.11.1'
5 changes: 3 additions & 2 deletions src/HABApp/config/logging/config.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import logging
import logging.config
import sys
from pathlib import Path
from queue import Queue
from typing import Any
Expand Down Expand Up @@ -131,9 +132,9 @@ def inject_queue_handler(handlers_cfg: dict, loggers_cfg: dict, log: BufferedLog
for handler_name, buffered_handler_name in buffered_handlers.items():
# https://github.com/python/cpython/issues/124653
if PYTHON_313:
q: SimpleQueue = SimpleQueue()
q: SimpleQueue = SimpleQueue() if sys.version_info[:3] > (3, 13, 0) else Queue()
elif PYTHON_312:
q = Queue()
q = SimpleQueue() if sys.version_info[:3] > (3, 12, 7) else Queue()
else:
q: SimpleQueue = SimpleQueue()
handlers_cfg[buffered_handler_name] = {'class': 'logging.handlers.QueueHandler', 'queue': q}
Expand Down
2 changes: 1 addition & 1 deletion tests/test_openhab/test_items/test_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
def test_OnOff(cls) -> None:
c = cls('item_name')
assert not c.is_on()
if not __version__.startswith('24.11.0'):
if not __version__.startswith('24.11.1'):
assert not c.is_off()

c.set_value(OnOffValue('ON'))
Expand Down

0 comments on commit 901417d

Please sign in to comment.