Files
esphome-dev/esphome/components
Sybren A. Stüvel 48658d5a55 Add a simple 'skip_initial' filter (#4582)
* Add a simple 'skip' filter

This filter simply skips the first `send_first_at` values, then passes
everything as-is. This is quite useful when you know the first few sensor
readings should be ignored.

Example YAML:

```yaml
sensor:
  - platform: sgp30
    id: mysensor_sgp30
    eco2:
      id: mysensor_sgp30_co2
      name: "eCO₂"
      accuracy_decimals: 0
      filters:
        - skip:
            send_first_at: 41
```

* Rename the filter to `skip_initial` and simplify the schema

New usage:

```yaml
      filters:
        - skip_initial: 41
```

* Apply clang-format
2023-03-19 19:08:51 +00:00
..
2022-11-24 13:12:55 +13:00
2023-01-26 17:20:45 +13:00
2022-11-24 13:12:55 +13:00
2022-11-24 13:12:55 +13:00
2022-11-24 13:12:55 +13:00
2022-11-24 13:12:55 +13:00
2023-01-17 10:36:44 +13:00
2022-08-11 13:57:42 +12:00
2023-01-18 10:42:43 +13:00
2022-11-24 13:12:55 +13:00
2023-03-08 18:25:25 +00:00
2023-03-07 04:25:14 +00:00
2022-12-06 23:25:19 +13:00
2022-11-24 13:12:55 +13:00
2022-11-24 13:12:55 +13:00
2023-02-23 02:05:33 +00:00
2022-11-24 13:12:55 +13:00
2023-01-18 10:42:47 +13:00
2023-02-23 01:31:35 +00:00
2022-11-24 13:12:55 +13:00
2023-02-09 07:30:00 +13:00
2023-02-13 15:53:40 +13:00
2022-11-24 13:12:55 +13:00
2022-11-24 13:12:55 +13:00
2023-03-15 22:23:01 +00:00
2022-01-08 21:35:55 +13:00
2023-02-09 10:25:44 +13:00
2022-11-24 13:12:55 +13:00
2022-02-21 12:23:26 +13:00
2022-11-24 13:12:55 +13:00
2022-11-24 13:12:55 +13:00
2022-12-22 18:39:25 +13:00
2022-11-24 13:12:55 +13:00
2022-11-24 13:12:55 +13:00
2022-11-24 13:12:55 +13:00
2022-01-04 10:35:15 +13:00
2022-11-24 13:12:55 +13:00
2022-11-24 13:12:55 +13:00
2022-11-24 13:12:55 +13:00
2023-03-05 18:45:54 +00:00
2022-11-24 13:12:55 +13:00
2022-11-24 13:12:55 +13:00
2022-06-07 22:43:46 +12:00
2022-11-24 13:12:55 +13:00
2022-10-05 20:09:27 +13:00
2022-09-06 12:57:21 +12:00
2022-04-13 10:19:48 +12:00
2022-05-19 12:47:33 +12:00
2023-02-03 07:53:46 +13:00
2023-03-08 01:11:12 +00:00
2022-04-26 09:50:36 +12:00
2022-04-13 10:19:48 +12:00
2022-11-24 13:12:55 +13:00
2023-01-18 10:43:16 +13:00
2022-11-24 13:12:55 +13:00
2022-11-24 13:12:55 +13:00
2023-01-18 10:17:31 +13:00
2022-11-24 13:12:55 +13:00
2022-11-24 13:12:55 +13:00
2022-11-24 13:12:55 +13:00
2022-09-14 16:51:20 +12:00
2023-02-07 12:17:17 +13:00
2023-02-22 23:40:20 +00:00
2022-10-19 13:44:26 +13:00
2022-11-24 13:12:55 +13:00