esphome:
on_boot:
then:
- output.ledc.set_frequency:
id: test_ledc
frequency: 100Hz
output:
- platform: ledc
pin: 4