Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/validate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
validate-hacs:
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v4"
- uses: "actions/checkout@v4.1.1"
- name: HACS validation
uses: "hacs/action@main"
with:
Expand Down
60 changes: 60 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# Stromer Custom Component Changelog

## Changelog

### DEC 2023 [0.2.8]

- Fix energy measurement to total/total_increasing

### NOV 2023 [0.2.7]

- Fix to appropriate `device_class` from 0.2.5

### NOV 2023 [0.2.6]

- Fix API recall (reverted maintenance approach from 0.2.5) tnx to @simonwolf83

### NOV 2023 [0.2.5]

- Fix unit from W to Wh (thanks @Tinus78) via #46

## OCT 2023 [0.2.4]

- Improve quality

### SEP 2023 [0.2.3]

- Conform to hacs and HA files
- Adding HACS validation

### SEP 2023 [0.2.2]

- Fix location (i.e. `device_tracker`) reporting

### AUG 2023 [0.2.1]

- Quickfix sensors lost due to some data not available

### MAR 2023 [0.2.0]

- Fix 2023.3 compliance

### APR 2022 [0.1.0]

- Include last update sensors

### APR 2022 [0.0.8]

- v4 API support
- Data handling and reconnection

### APR 2022 [0.0.7]

- Fix sensory updates
- Potentially fix token expiration

### MAR 2022 [0.0.4]

- Initial release
- Creates a device for your bike in Home Assistant
- Refreshed location and other information every 10 minutes
55 changes: 0 additions & 55 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,61 +122,6 @@ show_state: false

Even though available does not mean it's stable yet, the HA part is solid but the class used to interact with the API is in need of improvement (e.g. better overall handling). This might also warrant having the class available as a module from pypi.

## Changelog

### NOV 2023 [0.2.7]

- Fix to appropriate `device_class` from 0.2.5

### NOV 2023 [0.2.6]

- Fix API recall (reverted maintenance approach from 0.2.5) tnx to @simonwolf83

### NOV 2023 [0.2.5]

- Fix unit from W to Wh (thanks @Tinus78) via #46

## OCT 2023 [0.2.4]

- Improve quality

### SEP 2023 [0.2.3]

- Conform to hacs and HA files
- Adding HACS validation

### SEP 2023 [0.2.2]

- Fix location (i.e. `device_tracker`) reporting

### AUG 2023 [0.2.1]

- Quickfix sensors lost due to some data not available

### MAR 2023 [0.2.0]

- Fix 2023.3 compliance

### APR 2022 [0.1.0]

- Include last update sensors

### APR 2022 [0.0.8]

- v4 API support
- Data handling and reconnection

### APR 2022 [0.0.7]

- Fix sensory updates
- Potentially fix token expiration

### MAR 2022 [0.0.4]

- Initial release
- Creates a device for your bike in Home Assistant
- Refreshed location and other information every 10 minutes

## What does it support?

- Location
Expand Down
2 changes: 1 addition & 1 deletion custom_components/stromer/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
"iot_class": "cloud_polling",
"issue_tracker": "https://github.com/CoMPaTech/stromer/issues",
"requirements": [],
"version": "0.2.5"
"version": "0.2.8a1"
}
4 changes: 2 additions & 2 deletions custom_components/stromer/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
name="Energy used (average)",
native_unit_of_measurement=ENERGY_WATT_HOUR,
device_class=SensorDeviceClass.ENERGY,
state_class=SensorStateClass.MEASUREMENT,
state_class=SensorStateClass.TOTAL,
),
SensorEntityDescription(
key="average_speed_total",
Expand Down Expand Up @@ -121,7 +121,7 @@
name="Energy used (total)",
native_unit_of_measurement=ENERGY_WATT_HOUR,
device_class=SensorDeviceClass.ENERGY,
state_class=SensorStateClass.MEASUREMENT,
state_class=SensorStateClass.TOTAL_INCREASING,
),
SensorEntityDescription(
key="total_time",
Expand Down