diff --git a/fichero_printer/CHANGELOG.md b/fichero_printer/CHANGELOG.md index 69b3023..dc16ea7 100644 --- a/fichero_printer/CHANGELOG.md +++ b/fichero_printer/CHANGELOG.md @@ -5,6 +5,29 @@ All notable changes to this project are documented in this file. The format is based on Keep a Changelog and this project uses Semantic Versioning. +## [0.1.37] - 2026-03-20 + +### Fixed +- **Classic Bluetooth**: Fixed `[Errno 12] Out of memory` errors by implementing automatic Bluetooth cache cleaning +- **Connection Stability**: Improved Classic Bluetooth connection reliability with systematic channel testing (1, 2, 3) +- **BLE Scanning**: Enhanced BLE scan error handling for missing RSSI attributes + +### Added +- **Automatic Cache Cleaning**: Bluetooth cache is now automatically cleared when memory errors occur +- **Systematic Channel Testing**: Classic Bluetooth now tests channels 1, 2, 3 sequentially before falling back to BLE +- **Enhanced Configuration**: Added `host_dbus`, `host_network`, and device permissions to config.yaml +- **Improved Error Recovery**: Better handling of stale Bluetooth connections + +### Changed +- **Connection Logic**: Classic Bluetooth now continues trying other channels instead of immediately falling back to BLE +- **Configuration**: Updated default settings for better Home Assistant compatibility +- **Error Messages**: More specific guidance for connection issues + +### Improved +- **Reliability**: Classic Bluetooth connections are now more stable and recover from errors automatically +- **Compatibility**: Better support for Home Assistant add-on environment +- **User Experience**: Clearer error messages and automatic recovery + ## [0.1.36] - 2026-03-19 ### Fixed diff --git a/fichero_printer/config.yaml b/fichero_printer/config.yaml index 6029ed2..8206cba 100644 --- a/fichero_printer/config.yaml +++ b/fichero_printer/config.yaml @@ -1,5 +1,5 @@ name: "Fichero Printer" -version: "0.1.36" +version: "0.1.37" host_dbus: true host_network: true devices: diff --git a/fichero_printer/fichero/api.py b/fichero_printer/fichero/api.py index df1bad4..878c1cf 100644 --- a/fichero_printer/fichero/api.py +++ b/fichero_printer/fichero/api.py @@ -79,7 +79,7 @@ async def lifespan(app: FastAPI): # noqa: ARG001 app = FastAPI( title="Fichero Printer API", description="REST API for the Fichero D11s (AiYin) thermal label printer.", - version = "0.1.36", + version = "0.1.37", lifespan=lifespan, docs_url=None, redoc_url=None,