Skip to content

Commit

Permalink
Fix NYT Games connection max streak (home-assistant#129149)
Browse files Browse the repository at this point in the history
  • Loading branch information
joostlek authored and noahhusby committed Oct 25, 2024
1 parent 0393f7b commit bc1e439
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion homeassistant/components/nyt_games/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ class NYTGamesConnectionsSensorEntityDescription(SensorEntityDescription):
state_class=SensorStateClass.TOTAL_INCREASING,
native_unit_of_measurement=UnitOfTime.DAYS,
device_class=SensorDeviceClass.DURATION,
value_fn=lambda connections: connections.current_streak,
value_fn=lambda connections: connections.max_streak,
),
)

Expand Down
2 changes: 1 addition & 1 deletion tests/components/nyt_games/snapshots/test_sensor.ambr
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
'last_changed': <ANY>,
'last_reported': <ANY>,
'last_updated': <ANY>,
'state': '0',
'state': '2',
})
# ---
# name: test_all_entities[sensor.connections_last_played-entry]
Expand Down

0 comments on commit bc1e439

Please sign in to comment.