mirror of
https://github.com/cyberjunky/home-assistant-garmin_connect.git
synced 2026-01-10 21:37:57 -05:00
Compare commits
19 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dd7cfc021f | ||
|
|
154190f9e9 | ||
|
|
e2d3a61c0e | ||
|
|
47717f019c | ||
|
|
03f576207f | ||
|
|
db334c0761 | ||
|
|
78f5266a5f | ||
|
|
7ce7bd2277 | ||
|
|
0e3838df3d | ||
|
|
39fccd6630 | ||
|
|
e97b40e3dd | ||
|
|
2cf26ada3c | ||
|
|
ace2c3f7de | ||
|
|
6c6a9dffd7 | ||
|
|
c740f36330 | ||
|
|
c587d52e77 | ||
|
|
1b4418b652 | ||
|
|
933d4a19bd | ||
|
|
1560895361 |
15
.github/workflows/hassfest.yml
vendored
Normal file
15
.github/workflows/hassfest.yml
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
|
||||
name: Validate with hassfest
|
||||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
schedule:
|
||||
- cron: "0 0 * * *"
|
||||
|
||||
jobs:
|
||||
validate:
|
||||
runs-on: "ubuntu-latest"
|
||||
steps:
|
||||
- uses: "actions/checkout@v2"
|
||||
- uses: home-assistant/actions/hassfest@master
|
||||
@@ -8,6 +8,7 @@ The Garmin Connect integration allows you to expose data from Garmin Connect to
|
||||
|
||||
### HACS - Recommended
|
||||
- Have [HACS](https://hacs.xyz) installed, this will allow you to easily manage and track updates.
|
||||
- Add https://github.com/cyberjunky/home-assistant-garmin_connect to custom repositories in HACS
|
||||
- Search for 'Garmin Connect'.
|
||||
- Click Install below the found integration.
|
||||
- Restart Home-Assistant.
|
||||
|
||||
@@ -348,7 +348,7 @@ GARMIN_ENTITY_LIST = {
|
||||
"bmi": ["BMI", "bmi", "mdi:food", None, False],
|
||||
"bodyFat": ["Body Fat", PERCENTAGE, "mdi:food", None, False],
|
||||
"bodyWater": ["Body Water", PERCENTAGE, "mdi:water-percent", None, False],
|
||||
"bodyMass": ["Body Mass", MASS_KILOGRAMS, "mdi:food", None, False],
|
||||
"boneMass": ["Bone Mass", MASS_KILOGRAMS, "mdi:bone", None, False],
|
||||
"muscleMass": ["Muscle Mass", MASS_KILOGRAMS, "mdi:dumbbell", None, False],
|
||||
"physiqueRating": ["Physique Rating", None, "mdi:numeric", None, False],
|
||||
"visceralFat": ["Visceral Fat", PERCENTAGE, "mdi:food", None, False],
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
"name": "Garmin Connect",
|
||||
"documentation": "https://github.com/cyberjunky/home-assistant-garmin_connect",
|
||||
"issue_tracker": "https://github.com/cyberjunky/home-assistant-garmin_connect/issues",
|
||||
"requirements": ["garminconnect_ha==0.1.13"],
|
||||
"requirements": ["garminconnect==0.1.24"],
|
||||
"codeowners": ["@cyberjunky"],
|
||||
"config_flow": true,
|
||||
"iot_class": "cloud_polling",
|
||||
"version": "0.1.1"
|
||||
"version": "0.1.6"
|
||||
}
|
||||
|
||||
@@ -116,6 +116,8 @@ class GarminConnectSensor(CoordinatorEntity, SensorEntity):
|
||||
)
|
||||
if active_alarms:
|
||||
value = active_alarms[0]
|
||||
else:
|
||||
value = None
|
||||
|
||||
if self._device_class == DEVICE_CLASS_TIMESTAMP:
|
||||
return value
|
||||
|
||||
Reference in New Issue
Block a user