Honor the time display preference of the user set in HA #122
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes issue #84 by using HA time format setting set by the user if it exists.
I'm not used to JS so feel free to tell me if there are changes I need to make.
Tested on my setup, works as intended.
![image](https://private-user-images.githubusercontent.com/5372331/265258071-17b1b760-6e54-4ecb-abba-395fe21ddcbf.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNjY2ODYsIm5iZiI6MTczOTE2NjM4NiwicGF0aCI6Ii81MzcyMzMxLzI2NTI1ODA3MS0xN2IxYjc2MC02ZTU0LTRlY2ItYWJiYS0zOTVmZTIxZGRjYmYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTBUMDU0NjI2WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9N2E1ZmI4YTJlZDMxM2RjNjY3MzZiZGMxZGQyZDEyNjQ2MTlmMmZkMmRmMGYxYjg4MmFmODEyNzc2ZjVkMGQ1MSZYLUFtei1TaWduZWRIZWFkZXJ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