How to configure scan interval

I just set up the automatic discovery device to respond slowly. Through a series of searches, I found that the entity status update was too slow. I accidentally found the option of scanning interval in the official document, but the configuration was invalid. Maybe my code was wrong

entity
light.ce_shi_deng_pao_light

sensor:
- platform: ce_shi_deng_pao_light
  scan_interval: 1

12 posts were merged into an existing topic: Help: How to change the frequency of entity status updates