Add Open Exchange Rates coordinator (#76017)

* Add Open Exchange Rates coordinator

* Move debug log

* Fix update interval calculation
This commit is contained in:
Martin Hjelmare 2022-08-02 14:49:46 +02:00 committed by GitHub
parent 404d530b5f
commit cfe6c8939c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 133 additions and 69 deletions

View 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)