Skip to content

Commit

Permalink
Merge pull request #229 from jwillemsen/jwi-schedule
Browse files Browse the repository at this point in the history
Test extension for schedule
  • Loading branch information
jwillemsen authored Jun 25, 2024
2 parents 93ccebf + 444e9c9 commit 15746d3
Show file tree
Hide file tree
Showing 4 changed files with 2,956 additions and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/daikin_onecta/select.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def get_options(self):
if scheduledict is not None:
currentMode = scheduledict["value"]["currentMode"]["value"]
for scheduleName in scheduledict["value"]["modes"][currentMode]["currentSchedule"]["values"]:
readableName = scheduledict["value"]["modes"][currentMode]["schedules"][scheduleName]["name"]["value"]
readableName = scheduledict["value"]["modes"][currentMode]["schedules"][scheduleName]["name"].get("value")
# The schedule can maybe have an empty name set, use at that moment the internal ID
if not readableName:
readableName = scheduleName
Expand Down
Loading

0 comments on commit 15746d3

Please sign in to comment.