mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-08 18:06:36 +00:00
Remove object-assign reference.
This commit is contained in:
parent
da62d1bf18
commit
f67e728d6d
@ -1,5 +1,3 @@
|
|||||||
import objectAssign from 'object-assign';
|
|
||||||
|
|
||||||
import stateData from './state_data';
|
import stateData from './state_data';
|
||||||
|
|
||||||
function getTime(minutesAgo) {
|
function getTime(minutesAgo) {
|
||||||
@ -53,7 +51,7 @@ function addEntity(state, deltas) {
|
|||||||
} else if (!state.attributes) {
|
} else if (!state.attributes) {
|
||||||
attributes = change.attributes;
|
attributes = change.attributes;
|
||||||
} else {
|
} else {
|
||||||
attributes = objectAssign({}, state.attributes, change.attributes);
|
attributes = Object.assign({}, state.attributes, change.attributes);
|
||||||
}
|
}
|
||||||
|
|
||||||
const time = index === 0 ? getTime(maxTime) : getTime(maxTime - index * timeDiff +
|
const time = index === 0 ? getTime(maxTime) : getTime(maxTime - index * timeDiff +
|
||||||
|
Loading…
x
Reference in New Issue
Block a user