Skip to content

Commit

Permalink
Fix battery level automations not working for trackers.
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphiiko committed Feb 28, 2024
1 parent 94fa00c commit c4248ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Fixed
- OyasumiVR crashing when trying to read SteamVR's display brightness upon SteamVR quitting.
- Battery level automations not working for trackers.

## [1.11.5]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export class TurnOffDevicesOnBatteryLevelAutomationService {
sleepMode: boolean
) {
if (previousLevel === null || previousLevel <= currentLevel) return;
if (!['Controller', 'Tracker'].includes(device.class)) return;
if (!['Controller', 'GenericTracker'].includes(device.class)) return;
let threshold = 0;
switch (device.class) {
case 'Controller':
Expand Down

0 comments on commit c4248ec

Please sign in to comment.