v2.0.0
This release makes the code base more in line with ESPHome's recommended component style. No additional functionality is added. Due to the underlying changes, this is a breaking change and users need to reconfigure their yaml
configurations.
Breaking Change
The platform name used in configuration files has been changed from matrix_display
to hub75_matrix_display
.
Components must be changed from matrix_display
,matrix_display_switch
,matrix_display_brightness
to hub75_matrix_display
.
Furthermore, the explicit definition of platformio_options:lib_deps
must not be declared in the yaml
configuration.
The newly added use_custom_library
option can be used to revert to the old import style.
Old | New |
esphome:
name: matrix-display
friendly_name: Matrix Display
platformio_options:
lib_deps:
- SPI
- Wire
- Adafruit BusIO
- adafruit/Adafruit GFX Library
- https://github[...]ing
display:
- platform: matrix_display
id: matrix
width: 64
height: 32
switch:
- platform: matrix_display_switch
matrix_id: matrix
name: "Power"
number:
- platform: matrix_display_brightness
matrix_id: matrix
name: "Brightness" |
esphome:
name: matrix-display
friendly_name: Matrix Display
display:
- platform: hub75_matrix_display
id: matrix
width: 64
height: 32
switch:
- platform: hub75_matrix_display
matrix_id: matrix
name: "Power"
number:
- platform: hub75_matrix_display
matrix_id: matrix
name: "Brightness" |
What's Changed
- Refactor component structure by @TillFleisch in #12
Full Changelog: v1.0.0...v2.0.0