Add Open Exchange Rates coordinator (#76017)
* Add Open Exchange Rates coordinator * Move debug log * Fix update interval calculation
This commit is contained in:
parent
404d530b5f
commit
cfe6c8939c
7 changed files with 133 additions and 69 deletions
7
homeassistant/components/openexchangerates/const.py
Normal file
7
homeassistant/components/openexchangerates/const.py
Normal file
|
@ -0,0 +1,7 @@
|
|||
"""Provide common constants for Open Exchange Rates."""
|
||||
from datetime import timedelta
|
||||
import logging
|
||||
|
||||
DOMAIN = "openexchangerates"
|
||||
LOGGER = logging.getLogger(__package__)
|
||||
BASE_UPDATE_INTERVAL = timedelta(hours=2)
|
Loading…
Add table
Add a link
Reference in a new issue