feat: add weight update support & fix behavior sensor device conflict…#41
Merged
Merged
Conversation
…#1) - Add MUTATION_UPDATE_PET and updatePetWeight() to pytryfi query - Add setWeight() method to FiPet for weight updates via GraphQL - Replace stub async_set_native_value in number.py with working implementation that calls pet.setWeight() via async_add_executor_job and re-raises errors as HomeAssistantError for proper user feedback - Use public .session property instead of private ._session for API calls - Fix PetBehaviorSensor device_info: only set identifiers so it merges with the main pet device instead of overriding model/name (was causing 'Series 3+ Collar' to replace 'Smart Dog Collar' in HA 2025.2) - Add tests for weight mutation, FiPet.setWeight, and number entity (success, no-pet, and API error paths) Co-authored-by: HomeClaw <homeclaw@openclaw.ai>
ajacques
approved these changes
Jun 29, 2026
Contributor
|
Sorry about the delay in merging. Had some life stuff come up. Thank you for your contribution! |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
… (#1)