Skip to content

Fixed formatting size options

Choose a tag to compare

@cognitivegears cognitivegears released this 15 Feb 23:28

Added

  • New escpos_printer.print_message service for notify entities with full formatting controls:
    message, title, align, bold, underline, width, height, utf8, encoding, cut, feed
  • UTF-8 transcoding support in print_message (same conversion behavior as print_text_utf8).
  • New tests for multiplier mapping and services.yaml schema validation.

Changed

  • Text size options now support numeric multipliers 1-8 (in addition to normal/double/triple) for text services.
  • notify.send_message path is now focused on standard notify usage (message/title), with advanced formatting moved to escpos_printer.print_message.
  • Docs and translations updated for the new service and size options.
  • Version bumped from 0.4.2 to 0.4.3.

Fixed

  • Font size handling now correctly sets custom_size vs normal_textsize, improving reliability of double/triple/custom text sizes.
  • Print operations that should use normal sizing (print_qr, print_barcode, print_image, standard notify send) now explicitly reset text size to avoid style carry-over.
  • Minor settings-flow cleanup for codepage handling.

Dependencies

  • Updated dev tooling/deps, including:
    pytest-homeassistant-custom-component 0.13.308 -> 0.13.314
    ruff 0.14.14 -> 0.15.1
    marshmallow 4.2.1 -> 4.2.2