Use iso-formatted times in MetOffice weather forecast (#52672)

* Fixed raw datetime in MetOffice weather forecast

* Use datetime in sensor attribute
This commit is contained in:
avee87 2021-07-08 09:01:06 +01:00 committed by GitHub
parent c4d8d1dc8e
commit 5ff7c7708d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 103 additions and 114 deletions

View file

@ -2,8 +2,7 @@
from homeassistant.const import CONF_API_KEY, CONF_LATITUDE, CONF_LONGITUDE, CONF_NAME
DATETIME_FORMAT = "%Y-%m-%d %H:%M:%S%z"
TEST_DATETIME_STRING = "2020-04-25 12:00:00+0000"
TEST_DATETIME_STRING = "2020-04-25T12:00:00+00:00"
TEST_API_KEY = "test-metoffice-api-key"