Files
core/homeassistant/util
Andrea Campi e627544479 Always consume the no_throttle keyword argument. (#11126)
The current code relies on the assumption that the first invocation will never specify no_throttle=True.
However that puts us in a pickle when writing unit tests: if we had a fictitious:

  def setup_platform():
    update()

  @Throttle(MIN_TIME_BETWEEN_SCANS)
  def update():
    pass

Then given multiple tests, the second and some of subsequent tests would be throttled (depending on timing).
But we also can't change that code to call `update(no_throttle=True)' because that's not currently accepted.

This diff shouldn't change the visibile behavior of any component, but allows this extra flexibility.
2017-12-13 20:01:59 -08:00
..
2017-05-02 09:18:47 -07:00
2017-09-25 09:05:09 -07:00
2016-08-04 22:02:19 -07:00
2017-04-19 14:09:00 +02:00
2017-09-23 17:15:46 +02:00
2017-06-08 15:53:12 +02:00