Skip to content
Snippets Groups Projects
Unverified Commit fbe35e6e authored by Joost Lekkerkerker's avatar Joost Lekkerkerker Committed by GitHub
Browse files

Fix NYT Games connection max streak (#129149)

parent a3cd74e3
No related branches found
No related tags found
No related merge requests found
...@@ -139,7 +139,7 @@ CONNECTIONS_SENSORS: tuple[NYTGamesConnectionsSensorEntityDescription, ...] = ( ...@@ -139,7 +139,7 @@ CONNECTIONS_SENSORS: tuple[NYTGamesConnectionsSensorEntityDescription, ...] = (
state_class=SensorStateClass.TOTAL_INCREASING, state_class=SensorStateClass.TOTAL_INCREASING,
native_unit_of_measurement=UnitOfTime.DAYS, native_unit_of_measurement=UnitOfTime.DAYS,
device_class=SensorDeviceClass.DURATION, device_class=SensorDeviceClass.DURATION,
value_fn=lambda connections: connections.current_streak, value_fn=lambda connections: connections.max_streak,
), ),
) )
......
...@@ -98,7 +98,7 @@ ...@@ -98,7 +98,7 @@
'last_changed': <ANY>, 'last_changed': <ANY>,
'last_reported': <ANY>, 'last_reported': <ANY>,
'last_updated': <ANY>, 'last_updated': <ANY>,
'state': '0', 'state': '2',
}) })
# --- # ---
# name: test_all_entities[sensor.connections_last_played-entry] # name: test_all_entities[sensor.connections_last_played-entry]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment