Fix NYT Games connection max streak (#129149)

This commit is contained in:
Joost Lekkerkerker 2024-10-25 14:19:46 +02:00 committed by Franck Nijhof
parent a5a8cfa17d
commit 67e0197a7a
No known key found for this signature in database
GPG key ID: D62583BA8AB11CA3
2 changed files with 2 additions and 2 deletions

View file

@ -139,7 +139,7 @@ CONNECTIONS_SENSORS: tuple[NYTGamesConnectionsSensorEntityDescription, ...] = (
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,
),
)

View file

@ -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]