iobroker.lovelace 4.1.1 → 4.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -473,6 +473,9 @@ After that checkout modified version in `./build` folder. Then.
473
473
  PLACEHOLDER for next version:
474
474
  ### **WORK IN PROGRESS**
475
475
  -->
476
+ ### 4.1.2 (2024-01-09)
477
+ * (Garfonso) fix: time in timestamp display
478
+
476
479
  ### 4.1.1 (2024-01-02)
477
480
  * (Garfonso) changed: determining user id
478
481
  * (Garfosno) changed: history attributes handling
@@ -488,12 +491,6 @@ After that checkout modified version in `./build` folder. Then.
488
491
  ### 4.0.11 (2023-12-15)
489
492
  * (Garfonso) updated dependencies
490
493
 
491
- ### 4.0.10 (2023-12-15)
492
- * (Garfonso) brought back shopping list. Now also supports shopping/todo lists from manual entities.
493
- * (Garfonso) fix: browser console errors
494
- * (Garfonso) fix: login & authorization
495
- * (Garfonso) added: user images & names on login screen
496
-
497
494
  ## License
498
495
 
499
496
  Copyright 2019-2024, bluefox <dogafox@gmail.com>
package/io-package.json CHANGED
@@ -1,8 +1,21 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "lovelace",
4
- "version": "4.1.1",
4
+ "version": "4.1.2",
5
5
  "news": {
6
+ "4.1.2": {
7
+ "en": "fix: time in timestamp display",
8
+ "de": "fix: zeit im zeitstempel-display",
9
+ "ru": "фиксация: время дисплея",
10
+ "pt": "correção: tempo em exibição do timestamp",
11
+ "nl": "fix: tijd in tijdstempelweergave",
12
+ "fr": "correction : temps dans l'affichage de l'horodatage",
13
+ "it": "correzione: tempo in visualizzazione timestamp",
14
+ "es": "fijación: tiempo en la pantalla de tiempo",
15
+ "pl": "fix: czas wyświetlania znacznika czasu",
16
+ "uk": "виправити: час в часовому режимі відображення",
17
+ "zh-cn": "修正:时间戳显示的时间"
18
+ },
6
19
  "4.1.1": {
7
20
  "en": "changed: determining user id\nchanged: history attributes handling\nadded: handle browser_mod/recall_id service call.\nchanged: all states are strings!",
8
21
  "de": "geändert: bestimmung der benutzer-id\ngeändert: historie für attribute\nhinzugefügt: handle browser_mod/recall_id service call.\ngeändert: alle zustände sind strings!"
@@ -44,10 +57,6 @@
44
57
  "4.0.9": {
45
58
  "en": "fixed: timestamp in legacy history data",
46
59
  "de": "fixed: zeitstempel in alten History daten"
47
- },
48
- "4.0.8": {
49
- "en": "re-add legacy history for custom cards",
50
- "de": "re-add die alten history methoden für benutzerdefinierte karten"
51
60
  }
52
61
  },
53
62
  "title": "Visualization with Lovelace-UI",
@@ -63,9 +63,10 @@ exports.iobState2EntityState = function (entity, val, attribute) {
63
63
  //convert to date string
64
64
  const date = new Date(val);
65
65
  let dateStr = date.toDateString();
66
- if (attribute === 'timestamp') {
66
+ if (entity.attributes.device_class === 'timestamp') {
67
67
  dateStr = date.toISOString();
68
68
  }
69
+ console.log('Sending', dateStr, '-', typeof dateStr);
69
70
  return dateStr === 'Invalid Date' ? 'unknown' : dateStr;
70
71
  } else if (type === 'lock') {
71
72
  return val ? 'unlocked' : 'locked';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iobroker.lovelace",
3
- "version": "4.1.1",
3
+ "version": "4.1.2",
4
4
  "description": "With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI",
5
5
  "author": {
6
6
  "name": "bluefox",