mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-16 22:06:29 +00:00
Add note about minimum allowed update interval (#1679)
This commit is contained in:
parent
2c2a7b2591
commit
59ab7df279
@ -150,7 +150,7 @@ If you can map exactly one device endpoint to a single entity, you can fetch the
|
||||
|
||||
If your entities need to fetch data before being written to Home Assistant for the first time, pass `True` to the `add_entities` method: `add_entities([MyEntity()], True)`.
|
||||
|
||||
You can control the polling interval for your integration by defining a `SCAN_INTERVAL` constant in your platform. Careful with setting this too low. It will take up resources in Home Assistant, can overwhelm the device hosting the API or can get you blocked from cloud APIs.
|
||||
You can control the polling interval for your integration by defining a `SCAN_INTERVAL` constant in your platform. Careful with setting this too low. It will take up resources in Home Assistant, can overwhelm the device hosting the API or can get you blocked from cloud APIs. The minimum allowed value is 5 seconds.
|
||||
|
||||
```python
|
||||
from datetime import timedelta
|
||||
|
Loading…
x
Reference in New Issue
Block a user