Skip to content

Commit

Permalink
Merge pull request #12 from paulbusse/devel-23.3
Browse files Browse the repository at this point in the history
Devel 23.3
  • Loading branch information
paulbusse authored Jul 3, 2023
2 parents 8f5b5b8 + 86e882f commit ed9ea54
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/ReleaseNotes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Release History

## Version 23.3

### Fixes

* Fix out of range index for SelectSensorEntity.

### Upgrade

Simply install 23.2. Configuration should work as is.

## Version 23.2

### Fixes
Expand Down
4 changes: 4 additions & 0 deletions src/entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,10 @@ def __init__(self, entitytype: str, systemname: str, attribute: str, systemlabel
self._options = self._split(data[FORMAT])

def set_okfval(self, v):
iv = int(v)
if iv < 0 or iv >= len(self._options):
llog.info( f"{self._entityname}: option not available ({iv} out of {len(self._options)}). Ignored.")
return
super().set_okfval(self._options[int(v)])

@property
Expand Down

0 comments on commit ed9ea54

Please sign in to comment.