mirror of
https://github.com/home-assistant/core.git
synced 2025-08-14 18:11:41 +02:00
remove unused
This commit is contained in:
@@ -729,7 +729,7 @@ def _sorted_states_to_dict(
|
|||||||
ent_results.extend(
|
ent_results.extend(
|
||||||
{
|
{
|
||||||
attr_state: (prev_state := state),
|
attr_state: (prev_state := state),
|
||||||
attr_time: row[last_updated_ts_idx] or start_time_ts,
|
attr_time: row[last_updated_ts_idx],
|
||||||
}
|
}
|
||||||
for row in group
|
for row in group
|
||||||
if (state := row[state_idx]) != prev_state
|
if (state := row[state_idx]) != prev_state
|
||||||
@@ -741,9 +741,7 @@ def _sorted_states_to_dict(
|
|||||||
ent_results.extend(
|
ent_results.extend(
|
||||||
{
|
{
|
||||||
attr_state: (prev_state := state), # noqa: F841
|
attr_state: (prev_state := state), # noqa: F841
|
||||||
attr_time: _utc_from_timestamp(
|
attr_time: _utc_from_timestamp(row[last_updated_ts_idx]).isoformat(),
|
||||||
row[last_updated_ts_idx] or start_time_ts
|
|
||||||
).isoformat(),
|
|
||||||
}
|
}
|
||||||
for row in group
|
for row in group
|
||||||
if (state := row[state_idx]) != prev_state
|
if (state := row[state_idx]) != prev_state
|
||||||
|
Reference in New Issue
Block a user