ESPHome update "pre close warning" error

Updating to the latest version of ESPHome (8.2) on Home Assistant I kept getting some error in regards to pre close warning and had to comment out that section in garage-door-cover-wired.yaml to make it work:

close_action:
#      - button.press: pre_close_warning
#      - delay: $garage_door_close_warning_duration
      - button.press: garage_door_opener_button

Is there something in the configuration file I should be updating to get this right?

Here’s my current config file:

substitutions:
  name: garage-door-59c0cb
packages:
  remote_package:
    url: http://github.com/konnected-io/konnected-esphome
    ref: master
    files:
      - packages/garage-door-esp8266-base.yaml
      #- packages/garage-door-cover-wired-and-range.yaml
      - packages/garage-door-cover-wired.yaml
      - packages/garage-door-wired-sensor.yaml
      - packages/vl53l0x-range-sensor.yaml
      - packages/garage-door-opener-button.yaml
      - packages/switch.yaml
      - packages/warning-led.yaml
      - packages/warning-beep.yaml
      - packages/wifi.yaml
      - packages/status-led.yaml   
####
# DASHBOARD IMPORT
# Enables automatic discovery and upgrades via ESPHome Dashboard
# more: https://esphome.io/guides/getting_started_hassio.html
dashboard_import:
  package_import_url: github://konnected-io/konnected-esphome/garage-door-esp8266.yaml@master
  import_full_config: false
####
# WEB SERVER
# Enables the built-in web server for viewing the device state, internals and controls via web browser
# on the same local network as the device.
web_server:
  include_internal: true
#### 
# LOGGER
# more: https://esphome.io/components/logger.html
logger:
esphome:
  name: ${name}
  name_add_mac_suffix: false
binary_sensor:
  - id: !extend garage_door_wired_sensor
    name: GarageDoor Wired Sensor
    internal: false
wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

Hi @tariq,

I recently updated the ESPHome configuration for the pre-close warning tone to allow for more options and configuration in future releases.

Add the following package to the list of packages to pull in this change:

      - packages/pre-close-warning.yaml

The source code for the pre-close warning configuration is here on GitHub.

Thanks @nate appreciate the response.

On a side note, if I didn’t post this question here, how would I have known to add that package?