Platform: homeassistant - temperature reading interval

sensor:
  - platform: homeassistant
    name: "PC Temperatura w Salonie"  #"TUV From Home Assistant"
    id: "salon_temp_termostat"
    entity_id: sensor.temperatura_w_salonie
    attribute: current_temperature

climate:
  - platform: thermostat
    name: "Ogrzewanie "
    sensor: salon_temp_termostat
    min_heating_off_time: 60s
    min_heating_run_time: 60s
    min_idle_time: 30s
    heat_action:
      - switch.turn_on: pompa_wodna_co
...

How to enter the sensor reading time/interval from another device. I think it’s very long
I tried different options
update_interval: 15s
The ESP compiler responds:
[update_interval] is an invalid option for [sensor.homeassistant]. Did you mean [internal]?

Mariusz

I think I found it

  - platform: homeassistant
    name: "PC Temperatura w Salonie"  #"TUV From Home Assistant"
    id: "salon_temp_termostat"
    entity_id: sensor.temperatura_w_salonie
    filters:
    - filter_out: nan
    - heartbeat: 10s           #!!!
    - median:
        window_size: 5