mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 12:47:08 +00:00
Fix NYT Games connection max streak (#129149)
This commit is contained in:
parent
a3cd74e30b
commit
fbe35e6e6b
@ -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,
|
||||
),
|
||||
)
|
||||
|
||||
|
@ -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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user