Skip to content

Commit

Permalink
ESPHome version update
Browse files Browse the repository at this point in the history
* `2023.10.0` is now minimally required version, to avoid crashing at
   startup when winter mode enabled and address Pillow security
   vulnerability
* Updated icon for winter mode switch
  • Loading branch information
hostcc committed Oct 18, 2023
1 parent 6b8149f commit 52abe20
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
6 changes: 4 additions & 2 deletions controllers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
# Copyright (c) 2023 Ilia Sotnikov
---
esphome:
# Required for proper resume handling
min_version: '2023.7.0'
# Required for proper resume handling and avoiding crash at startup when
# winter mode enabled
min_version: '2023.10.0'

sprinkler:
- id: lawn_sprinklers
Expand Down Expand Up @@ -194,6 +195,7 @@ switch:
- platform: template
id: winter_mode
name: "Winter mode"
icon: "mdi:snowflake"
optimistic: true
restore_mode: RESTORE_DEFAULT_OFF
entity_category: config
Expand Down
9 changes: 2 additions & 7 deletions main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,6 @@ packages:
time: !include time.yaml # Optional
rtc: !include rtc.yaml # Optional

# Both recent ESPHome version and PR below are needed to avoid crashing at
# startup when winter mode enabled
# 2023.10.0 addresses Pillow security vulnerability
esphome:
min_version: 2023.9.3

external_components:
- source: github://pr#5499
components: [sprinkler]
min_version: '2023.10.0'
3 changes: 1 addition & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
esphome>=2023.7.0
pillow~=9.5
esphome>=2023.10.0

0 comments on commit 52abe20

Please sign in to comment.