Merge branch 'main' into mfa

This commit is contained in:
Ron
2025-06-05 12:53:36 +02:00
committed by GitHub
9 changed files with 91 additions and 12 deletions

22
.coderabbit.yaml Normal file
View File

@@ -0,0 +1,22 @@
# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json # Schema for CodeRabbit configurations
language: "en-US"
early_access: true
reviews:
profile: "assertive"
request_changes_workflow: false
high_level_summary: true
poem: false
review_status: true
collapse_walkthrough: false
auto_review:
enabled: true
drafts: false
path_filters:
- "!tests/**/cassettes/**"
path_instructions:
- path: "tests/**"
instructions: |
- test functions shouldn't have a return type hint
- it's ok to use `assert` instead of `pytest.assume()`
chat:
auto_reply: true

38
.github/ISSUE_TEMPLATE/bug_report.md vendored Normal file
View File

@@ -0,0 +1,38 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''
---
**Describe the bug**
A clear and concise description of what the bug is.
**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
**Expected behavior**
A clear and concise description of what you expected to happen.
**Screenshots**
If applicable, add screenshots to help explain your problem.
**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
**Additional context**
Add any other context about the problem here.

View File

@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''
---
**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
**Describe the solution you'd like**
A clear and concise description of what you want to happen.
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
**Additional context**
Add any other context or screenshots about the feature request here.

View File

@@ -184,10 +184,10 @@ data:
weight: 87
bmi: 25.5
bone_mass: 4.8
...
```
See the action template for other available values to add
NOTE: You need to enable Weight entity
NOTE: You need to enable the Weight entity
#### Set Active Gear

View File

@@ -8,5 +8,5 @@
"iot_class": "cloud_polling",
"issue_tracker": "https://github.com/cyberjunky/home-assistant-garmin_connect/issues",
"requirements": ["garminconnect>=0.2.27"],
"version": "0.2.31-beta-05"
"version": "0.2.32"
}

View File

@@ -239,7 +239,7 @@ class GarminConnectSensor(CoordinatorEntity, SensorEntity):
"last_synced": self.coordinator.data["lastSyncTimestampGMT"],
}
# Only keep the last 10 activities for performance reasons
# Only keep the last 5 activities for performance reasons
if self._type == "lastActivities":
activities = self.coordinator.data.get(self._type, [])
sorted_activities = sorted(

View File

@@ -1,2 +1,2 @@
colorlog==6.9.0
setuptools==75.8.0
setuptools==80.9.0

View File

@@ -1,2 +1 @@
# homeassistant==2024.4.1
homeassistant==2025.1.2
homeassistant==2025.3.3

View File

@@ -1,8 +1,8 @@
--requirement requirements_base.txt
codespell==2.3.0
isort==5.13.2
pre-commit==4.0.1
codespell==2.4.1
isort==6.0.1
pre-commit==4.2.0
pre-commit-hooks==5.0.0
pyupgrade==3.19.1
ruff==0.9.2
pyupgrade==3.20.0
ruff==0.11.12
vulture==2.14