Skip to content

v2.0.0

Latest
Compare
Choose a tag to compare
@TillFleisch TillFleisch released this 26 Jan 21:22
· 2 commits to main since this release
3308c07

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 type must be changed from desk_height_sensor,desk_is_moving_sensor,desk_switch,desk_memory_button to generic_desk.
The switch and button components are now configured differently:

Old New
switch:
  - platform: desk_switch
    desk_id: desk1
    name: "Up"
    direction: true

  - platform: desk_switch
    desk_id: desk1
    name: "Down"
    direction: false  
switch:
  - platform: generic_desk
    desk_id: desk1
    up:
      name: "Up"
    down:
      name: "Down"
button:
  - platform: desk_memory_button
    desk_id: desk1
    name: "M1"
    memory_id: 1

  - platform: desk_memory_button
    desk_id: desk1
    name: "M2"
    memory_id: 2
button:
  - platform: generic_desk
    desk_id: desk1
    M1:
      name: "M1"
    M2:
      name: "M2"
    M3:
      name: "M3"
    M4:
      name: "M4"

What's Changed

Full Changelog: v1.0.0...v2.0.0