-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates to support Geocaching Home Assistant integration feature upda…
…tes (#23) * Fix missing async keyword, see home-assistant/core#99977 * Add nearby caches to status * Change trackable distance traveled data type * Fix missing status initialization for nearby caches * Fix typo causing cache coordinates not to be parsed * Added update_caches and _get_cache_info, with some more stuff, have not been able to test that it works yet, /Per&Albin * add seperate call for geocaches * Started working on the trackable journey list, not yet tested /Albin Per * fix for appending to array in trackable journey api * add support for trackable objects * uncommented code * Revert formatting * Fix errors and add missing cache data points * Rename caches -> tracked_caches * Correctly parse location data for caches * Rename caches_codes -> cache_codes * Fix trackable parsing, add additonal fields to caches and trackables, some refactoring and cleanup * Formatting * Always return original value if new value could not be parsed * Update NearbyCachesSetting * Rename cache update function * Replace cache find count with found date and found switch * Rework foundByUser to be nullable * Fix nearby caches update condition and limit take parameter for API * Remove unused function, align variables and functions to snake_case * Improve trackable journey data and change API endpoint * Reverse geocode trackable journey locations * Add distance between journeys * Handle blocking reverse geocoding outside of init function * Separate nearby caches logic to allow directed usage * Add comments and improve documentation * Add settings validation method * Add cache and trackable URLs * Formatting and cleanup * Update test * Limits: cache and trackable limits in settings and in API call. Error handling: Raise error if too many codes were configured in settings. Automatically remove duplicate codes * Move limits to limits.py --------- Co-authored-by: Per Samuelsson <[email protected]> Co-authored-by: Albin <[email protected]> Co-authored-by: Jakob Windt <[email protected]> Co-authored-by: jwindt <[email protected]>
- Loading branch information
1 parent
973ec71
commit 0aebbd4
Showing
8 changed files
with
400 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
"""Geocaching Api Limits.""" | ||
|
||
MAXIMUM_TRACKED_CACHES: int = 50 | ||
MAXIMUM_TRACKED_TRACKABLES: int = 10 | ||
MAXIMUM_NEARBY_CACHES: int = 50 |
Oops, something went wrong.