We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b9b7cd commit 7ab5b33Copy full SHA for 7ab5b33
hass-connect-fake/index.tsx
@@ -437,12 +437,16 @@ function HassProvider({
437
last_changed: now.toISOString(),
438
last_updated: now.toISOString(),
439
}
440
- entities['sensor.time'] = {
441
- ...entities['sensor.time'],
442
- ...dates,
443
- state: formatted
+ if (formatted !== entities['sensor.time'].state) {
+ setEntities({
+ ...entities,
+ 'sensor.time': {
444
+ ...entities['sensor.time'],
445
+ ...dates,
446
+ state: formatted
447
+ }
448
+ });
449
- setEntities(entities);
450
}, 125);
451
return () => {
452
if (clock.current) clearInterval(clock.current);
0 commit comments