Fix NYT Games connection max streak (#129149)
This commit is contained in:
parent
a3cd74e30b
commit
fbe35e6e6b
2 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue