-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid time stamp on iOS devices #2
Comments
It seems like the issue described here: https://community.home-assistant.io/t/timestamp-cant-show-in-ios-app-but-working-on-chrome/102714/3 The departure attribute has the correct format, so a workaround might be to display that instead of the state. But later comments on that issue suggest that the missing T is not the actual cause, so it maybe won't be a workaround. The state is passed to HomeAssistant as a datetime object, so any formatting is up to Home Assistant itself. The departure attribute is a string directly from the Metlink API. |
As reported on issue #2, iOS is fussy about the format of timestamp strings. The correct ISO format is actually returned by the Metlink API, but when we parse it into a datetime object, Home Assistant later converts it back using a more human readable format (a space instead of T between date and time). Although I had a lot of trouble getting timestamps to display correctly early on, it seems the format from Metlink API is OK to use as-is.
Please try version 1.0.2. To avoid waiting the few hours it takes HACS to notice an update, you can click on the menu button on the Metlink entry in HACS, and choose "Update Information". |
Legend. Thanks Jason.
…On Sat, 19 Jun 2021 at 9:20 PM, Jason Rumney ***@***.***> wrote:
Please try version 1.0.2. To avoid waiting the few hours it takes HACS to
notice an update, you can click on the menu button on the Metlink entry in
HACS, and choose "Update Information".
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJITBOJWE7FPNYVZRAY3BLDTTRONDANCNFSM466ZSSKA>
.
|
When using the integration on both the companion app in or browser (Safari/Edge Chromium) on iOS 14.6 device - the entities card displays 'Invalid Timestamp' for each stop that is monitored.
The integration runs fine on Android.
The text was updated successfully, but these errors were encountered: