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:
parent
c4d8d1dc8e
commit
5ff7c7708d
4 changed files with 103 additions and 114 deletions
|
@ -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"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue