Skip to content

Commit

Permalink
Correct
Browse files Browse the repository at this point in the history
  • Loading branch information
bouwew committed May 2, 2024
1 parent ea7dca4 commit e04c897
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions homeassistant/components/plugwise/diagnostics.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ async def async_get_config_entry_diagnostics(
data[device][key] = f"**REDACTED_{i}**"

value = data[device][AVAILABLE_SCHEDULES]
for j in enumerate(value):
if value[j] not in (OFF, NONE):
for j, item in enumerate(value):
if item not in (OFF, NONE):
value[j] = f"**REDACTED_{j}**"

data[device][AVAILABLE_SCHEDULES] = value
Expand Down

0 comments on commit e04c897

Please sign in to comment.