Skip to content

Commit

Permalink
Fix parsing of µs time periods in config (esphome#7495)
Browse files Browse the repository at this point in the history
  • Loading branch information
dwmw2 authored Oct 2, 2024
1 parent 361b6ab commit e57a1ff
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions esphome/config_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -750,6 +750,7 @@ def time_period_str_unit(value):
"ns": "nanoseconds",
"nanoseconds": "nanoseconds",
"us": "microseconds",
"µs": "microseconds",
"microseconds": "microseconds",
"ms": "milliseconds",
"milliseconds": "milliseconds",
Expand Down
8 changes: 4 additions & 4 deletions tests/components/esp32_rmt_led_strip/test.esp32-c3-idf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ light:
num_leds: 60
rmt_channel: 1
rgb_order: RGB
bit0_high: 100us
bit0_low: 100us
bit1_high: 100us
bit1_low: 100us
bit0_high: 100µs
bit0_low: 100µs
bit1_high: 100µs
bit1_low: 100µs
8 changes: 4 additions & 4 deletions tests/components/esp32_rmt_led_strip/test.esp32-idf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ light:
num_leds: 60
rmt_channel: 2
rgb_order: RGB
bit0_high: 100us
bit0_low: 100us
bit1_high: 100us
bit1_low: 100us
bit0_high: 100µs
bit0_low: 100µs
bit1_high: 100µs
bit1_low: 100µs

0 comments on commit e57a1ff

Please sign in to comment.