mirror of
https://github.com/home-assistant/frontend.git
synced 2026-11-28 15:49:11 +00:00
Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3de5bf2d66 | ||
|
|
54bcf26027 |
No files matched your search
+6
-6
@@ -64,7 +64,7 @@
|
||||
"@formatjs/intl-pluralrules": "7.1.0",
|
||||
"@formatjs/intl-relativetimeformat": "13.0.3",
|
||||
"@home-assistant/webawesome": "3.14.0-ha.2",
|
||||
"@lezer/common": "1.5.7",
|
||||
"@lezer/common": "1.5.6",
|
||||
"@lezer/highlight": "1.2.5",
|
||||
"@lit-labs/motion": "1.1.0",
|
||||
"@lit-labs/observers": "2.1.0",
|
||||
@@ -147,7 +147,7 @@
|
||||
"@eslint/js": "10.0.1",
|
||||
"@gfx/zopfli": "1.0.15",
|
||||
"@home-assistant/components": "workspace:*",
|
||||
"@html-eslint/eslint-plugin": "0.69.0",
|
||||
"@html-eslint/eslint-plugin": "0.68.0",
|
||||
"@lokalise/node-api": "17.0.1",
|
||||
"@octokit/auth-oauth-device": "8.0.5",
|
||||
"@octokit/rest": "22.0.1",
|
||||
@@ -162,15 +162,15 @@
|
||||
"@types/culori": "4.0.1",
|
||||
"@types/geojson": "7946.0.16",
|
||||
"@types/html-minifier-terser": "7.0.2",
|
||||
"@types/leaflet": "1.9.23",
|
||||
"@types/leaflet": "1.9.22",
|
||||
"@types/leaflet.markercluster": "1.5.6",
|
||||
"@types/lodash.merge": "4.6.9",
|
||||
"@types/node": "24.19.4",
|
||||
"@types/node": "24.19.2",
|
||||
"@types/qrcode": "1.5.6",
|
||||
"@types/sortablejs": "1.15.9",
|
||||
"@types/tar": "7.0.87",
|
||||
"@typescript/native": "npm:[email protected]",
|
||||
"@vitest/coverage-v8": "5.1.2",
|
||||
"@vitest/coverage-v8": "5.1.1",
|
||||
"babel-loader": "10.1.1",
|
||||
"babel-plugin-polyfill-corejs3": "1.0.0",
|
||||
"browserslist": "4.29.6",
|
||||
@@ -217,7 +217,7 @@
|
||||
"typescript-eslint": "8.74.0",
|
||||
"vite": "8.3.8",
|
||||
"vite-tsconfig-paths": "6.1.1",
|
||||
"vitest": "5.1.2",
|
||||
"vitest": "5.1.1",
|
||||
"webpack-stats-plugin": "1.1.3",
|
||||
"webpackbar": "7.0.0",
|
||||
"workbox-build": "7.4.1"
|
||||
|
||||
Generated
+131
-131
@@ -269,10 +269,10 @@ importers:
|
||||
version: 13.0.3
|
||||
'@home-assistant/webawesome':
|
||||
specifier: 3.14.0-ha.2
|
||||
version: 3.14.0-ha.2(@floating-ui/[email protected])(@types/[email protected].4)
|
||||
version: 3.14.0-ha.2(@floating-ui/[email protected])(@types/[email protected].2)
|
||||
'@lezer/common':
|
||||
specifier: 1.5.7
|
||||
version: 1.5.7
|
||||
specifier: 1.5.6
|
||||
version: 1.5.6
|
||||
'@lezer/highlight':
|
||||
specifier: 1.2.5
|
||||
version: 1.2.5
|
||||
@@ -296,7 +296,7 @@ importers:
|
||||
version: 1.0.3
|
||||
'@maplibre/maplibre-gl-leaflet':
|
||||
specifier: 0.1.4
|
||||
version: 0.1.4(@types/[email protected]3)([email protected])([email protected])
|
||||
version: 0.1.4(@types/[email protected]2)([email protected])([email protected])
|
||||
'@mdi/js':
|
||||
specifier: 7.4.47
|
||||
version: 7.4.47
|
||||
@@ -515,8 +515,8 @@ importers:
|
||||
specifier: workspace:*
|
||||
version: link:packages/components
|
||||
'@html-eslint/eslint-plugin':
|
||||
specifier: 0.69.0
|
||||
version: 0.69.0([email protected]([email protected]))
|
||||
specifier: 0.68.0
|
||||
version: 0.68.0([email protected]([email protected]))
|
||||
'@lokalise/node-api':
|
||||
specifier: 17.0.1
|
||||
version: 17.0.1
|
||||
@@ -560,8 +560,8 @@ importers:
|
||||
specifier: 7.0.2
|
||||
version: 7.0.2
|
||||
'@types/leaflet':
|
||||
specifier: 1.9.23
|
||||
version: 1.9.23
|
||||
specifier: 1.9.22
|
||||
version: 1.9.22
|
||||
'@types/leaflet.markercluster':
|
||||
specifier: 1.5.6
|
||||
version: 1.5.6
|
||||
@@ -569,8 +569,8 @@ importers:
|
||||
specifier: 4.6.9
|
||||
version: 4.6.9
|
||||
'@types/node':
|
||||
specifier: 24.19.4
|
||||
version: 24.19.4
|
||||
specifier: 24.19.2
|
||||
version: 24.19.2
|
||||
'@types/qrcode':
|
||||
specifier: 1.5.6
|
||||
version: 1.5.6
|
||||
@@ -584,8 +584,8 @@ importers:
|
||||
specifier: npm:[email protected]
|
||||
version: [email protected]
|
||||
'@vitest/coverage-v8':
|
||||
specifier: 5.1.2
|
||||
version: 5.1.2([email protected].2)
|
||||
specifier: 5.1.1
|
||||
version: 5.1.1([email protected].1)
|
||||
babel-loader:
|
||||
specifier: 10.1.1
|
||||
version: 10.1.1(@babel/[email protected])(@rspack/[email protected](@swc/[email protected]))
|
||||
@@ -720,13 +720,13 @@ importers:
|
||||
version: 8.74.0([email protected]([email protected]))([email protected])([email protected])([email protected])
|
||||
vite:
|
||||
specifier: 8.3.8
|
||||
version: 8.3.8(@types/[email protected].4)([email protected])([email protected])
|
||||
version: 8.3.8(@types/[email protected].2)([email protected])([email protected])
|
||||
vite-tsconfig-paths:
|
||||
specifier: 6.1.1
|
||||
version: 6.1.1([email protected])([email protected])([email protected](@types/[email protected].4)([email protected])([email protected]))
|
||||
version: 6.1.1([email protected])([email protected])([email protected](@types/[email protected].2)([email protected])([email protected]))
|
||||
vitest:
|
||||
specifier: 5.1.2
|
||||
version: 5.1.2(@types/[email protected].4)(@vitest/[email protected].2)([email protected])([email protected](@types/[email protected].4)([email protected])([email protected]))
|
||||
specifier: 5.1.1
|
||||
version: 5.1.1(@types/[email protected].2)(@vitest/[email protected].1)([email protected])([email protected](@types/[email protected].2)([email protected])([email protected]))
|
||||
webpack-stats-plugin:
|
||||
specifier: 1.1.3
|
||||
version: 1.1.3
|
||||
@@ -2127,27 +2127,27 @@ packages:
|
||||
resolution: {integrity: sha512-EX1qiX5h3LAoTjuE3rgfuRlNq3Rds5tGrgDGlHoFbxhXaCSTTtuYU6tdR8vgOXKGUDi5gBDrcoNdLYKFXSrknA==}
|
||||
engines: {node: '>=14.17.0'}
|
||||
|
||||
'@html-eslint/[email protected]9.0':
|
||||
resolution: {integrity: sha512-iRKWw9NADbJ4nyZSPKQOlLrWail1cPHFRzTTfYKID9YCkIEwfSFdWOAS+dxL2pG7XcU+XBufvouYZQaJ+L5K8Q==}
|
||||
'@html-eslint/[email protected]8.0':
|
||||
resolution: {integrity: sha512-u3HioqcKIH6dVQp2uulmpcuUqgKLqiuOWyHAl7hV4hIUkuJ3ge7vEUwPoWvNRbfy3aWOMygttokdGxL5q9YFIg==}
|
||||
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
|
||||
|
||||
'@html-eslint/[email protected]9.0':
|
||||
resolution: {integrity: sha512-YJo4rF+lwzXXgPyf7Pq/H0qsW0VkOq52dUqhXyP3K+OHc/h84MzR2kZBF2SqbEXNLjGJGd0kv1upLHGA4OQiXQ==}
|
||||
'@html-eslint/[email protected]8.0':
|
||||
resolution: {integrity: sha512-fiR8UTYBr4+fGftEG1u+tT3AiuOSowvSZbsY4tLcMl9hOuFzquHw4BIaFFlV3xTeqF5Y0M69aPJoEhFJUkQyog==}
|
||||
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
|
||||
peerDependencies:
|
||||
eslint: '>=8.0.0 || ^10.0.0-0'
|
||||
|
||||
'@html-eslint/[email protected]9.0':
|
||||
resolution: {integrity: sha512-ueODnrY9N0I5pglHOXY+X3nvwh9FAbkXS7XTrGNUpk+TQW5AIbcpj8DR8KnzM/0Of0/lBdYtxXB6lgyIsKqy1A==}
|
||||
'@html-eslint/[email protected]8.0':
|
||||
resolution: {integrity: sha512-X22bU2qzEpzPI0bHtnfXzoUS8q/It/DNycJnIdsPzBDXcly+PItV5AJU4nm/+9FZCXSE3IZJvORRCTuvvpV8Bg==}
|
||||
|
||||
'@html-eslint/[email protected]9.0':
|
||||
resolution: {integrity: sha512-vNxrx7B9lLom4K7vrCQzzbIaspdOa+M30NW8yRVnowKRvHMsLR9Qw3OZ6LhUynNQ8QdrhXT9e8AoXZstSHZv7A==}
|
||||
'@html-eslint/[email protected]8.0':
|
||||
resolution: {integrity: sha512-zLgikGAF7izvrvUefy5EBEl6WpM0sTN9xzldwp7UgkkjR+zaFvqi9YsOWj+Y7Tu3XMXI0d7Gxv7PPPumVmJTuw==}
|
||||
|
||||
'@html-eslint/[email protected]9.0':
|
||||
resolution: {integrity: sha512-ZinGi4xjgM1evokVb7qVvaJGbpgspw7qSajSyFopl5CN61awDSYD2V0mlhJcqy4DTO+SZDdm47f9y1D5ru5EKg==}
|
||||
'@html-eslint/[email protected]8.0':
|
||||
resolution: {integrity: sha512-qbIF3MqmRckg6pXhwY/Ytxnb0eOoq5LPVt9wq8N4UBQHxL2z4cF407FHAiLNhpy8DO4AJUQbI6IZzhN8fHkvPA==}
|
||||
|
||||
'@html-eslint/[email protected]9.0':
|
||||
resolution: {integrity: sha512-7UWvjxcvXLwFWNm/QL2ZgeQbDsAQmX7DHmfQ4sAf/rlKyRtEzdEhVYVmIPU94VInMmLUXiT60ewy0RY8R3bPxg==}
|
||||
'@html-eslint/[email protected]8.0':
|
||||
resolution: {integrity: sha512-FW+FjFHp/w1V4uZ0us7keR6mAA+WGh6OsHvJ+Kzy8aBeogyOapDPEMT+zkXSsiJ+V9maJ6umqG20BXcs2y6lsw==}
|
||||
|
||||
'@humanfs/[email protected]':
|
||||
resolution: {integrity: sha512-UhXNm+CFMWcbChXywFwkmhqjs3PRCmcSa/hfBgLIb7oQ5HNb1wS0icWsGtSAUNgefHeI+eBrA8I1fxmbHsGdvA==}
|
||||
@@ -2261,8 +2261,8 @@ packages:
|
||||
'@konnorr/[email protected]':
|
||||
resolution: {integrity: sha512-6Ae3AfG45MOqF9Qde+1YxIxKf/GUsRmcriV7iCb/HaR+Mk1YDFYP3RINDRMI8z8YMWW3BnSthOujX9RoOex/Kw==}
|
||||
|
||||
'@lezer/[email protected].7':
|
||||
resolution: {integrity: sha512-3+3PN+M/3xSjrlQz8/wBPOl+JYGJ+G37ZszHfnhphFwj41qPUPxsz4WEic3ZyVpL23rX1qefaGqz0lA7jGUqwg==}
|
||||
'@lezer/[email protected].6':
|
||||
resolution: {integrity: sha512-NZxu3q49ck+YYbEJPuIPIyFP37XneBvzPIarBHEXBLBVfkZqQieZ/Y2boYnGNYtmjpOZLnAKs/lwqtmDpi365w==}
|
||||
|
||||
'@lezer/[email protected]':
|
||||
resolution: {integrity: sha512-YJE78Wcg+zX8f10hiHWQ4Az48Qr/c13eId0VtRQYLBpxHDmDeSrXIlkbl+fJGW42rWC/uoUco9mhBZeVWP/A1g==}
|
||||
@@ -3489,8 +3489,8 @@ packages:
|
||||
'@types/[email protected]':
|
||||
resolution: {integrity: sha512-I7hZjO2+isVXGYWzKxBp8PsCzAYCJBc29qBdFpquOCkS7zFDqUsUvkEOyQHedsk/Cy5tocQzf+Ndorm5W9YKTQ==}
|
||||
|
||||
'@types/[email protected]3':
|
||||
resolution: {integrity: sha512-rpvCoR7fQ2I4tFGIDjuyRAXl25e9YiJ9eE7AdJY5aJF8tkgg4ph3fRb9zafM6ZB1YO5LYziZQwh/vW3IOat/+Q==}
|
||||
'@types/[email protected]2':
|
||||
resolution: {integrity: sha512-h3lhECYEKDasG7LFHu+GiHqAvsgLuQvlJvVZzJDGONo3sEL+wUOqSFLnwkZlK0qVxnxbuGFW8iBlJNYs5wgndA==}
|
||||
|
||||
'@types/[email protected]':
|
||||
resolution: {integrity: sha512-23sHDPmzd59kUgWyKGiOMO2Qb9YtqRO/x4IhkgNUiPQ1+5MUVqi6bCZeq9nBJ17msjIMbEIO5u+XW4Kz6aGUhQ==}
|
||||
@@ -3504,8 +3504,8 @@ packages:
|
||||
'@types/[email protected]':
|
||||
resolution: {integrity: sha512-GRaXQx6jGfL8sKfaIDD6OupbIHBr9jv7Jnaml9tB7l4v068PAOXqfcujMMo5PhbIs6ggR1XODELqahT2R8v0fg==}
|
||||
|
||||
'@types/[email protected].4':
|
||||
resolution: {integrity: sha512-s04odlR3ksJrLu7QLi+pddkWLD0RmSbcP9KuWn2/ozQKAp/YgwBC/6x9kJj8yAzZnGPfxePm7zm7nysVPCRagw==}
|
||||
'@types/[email protected].2':
|
||||
resolution: {integrity: sha512-93d49wCWJkCyN87MxLpNN6KXPCwFw7bVUg79mGUV1OS40JGWwVCr8n61DXCSqz7CV6/VfPkb7xec7uP2M+QHWQ==}
|
||||
|
||||
'@types/[email protected]':
|
||||
resolution: {integrity: sha512-ieXiYmgSRXUDeOntE1InxjWyvEelZGP63M+cGuquuRLuIKKT1osnkXjxev9B7d1nXSug5vpunx+gNlbVxMlC9A==}
|
||||
@@ -3880,25 +3880,25 @@ packages:
|
||||
'@vibrant/[email protected]':
|
||||
resolution: {integrity: sha512-Q/R6PYhSMWCXEk/IcXbWIzIu7Z4b58ABkGvcdF8Y+q/7g+KnpxKW5x/jfQ/6ciyYSby13wZZoEdNr3QQVgsdBQ==}
|
||||
|
||||
'@vitest/[email protected].2':
|
||||
resolution: {integrity: sha512-VG0JLv0T4kr1fR6QAfe8PTou+Frc4t0u4j+oKgDH3djJpFawzBfGyX14/z56NXoCTNem3OEphzCJhc4DkE62xQ==}
|
||||
'@vitest/[email protected].1':
|
||||
resolution: {integrity: sha512-xL4NkbVx/UqqDHaXSOyvB8qsSoLQ+dVNGR9H2Bh/4ggQtmaPFNPUC9gZQwKZePLOQ6WDcgwXVnPulFW9eCHt0w==}
|
||||
peerDependencies:
|
||||
'@vitest/browser': 5.1.2
|
||||
vitest: 5.1.2
|
||||
'@vitest/browser': 5.1.1
|
||||
vitest: 5.1.1
|
||||
peerDependenciesMeta:
|
||||
'@vitest/browser':
|
||||
optional: true
|
||||
|
||||
'@vitest/[email protected].1':
|
||||
resolution: {integrity: sha512-pF9nMHHuyQzyEXdkWX3d4wElEKjymfL5TEoofegJn/jK2WjmTLOcJKfJ7/YwYGYdbZf8Ebrt4VDUoBPiTuO9zg==}
|
||||
'@vitest/[email protected].0':
|
||||
resolution: {integrity: sha512-WOjuS+xcjSIy7ruYBQ+9BUcV7XZQ0FyVcbWbWxW9TRx/kLGx5SQaeFRIFDJxjNplb6YsT7SpKo2zuXXUo91OIQ==}
|
||||
engines: {node: '>=22'}
|
||||
|
||||
'@vitest/[email protected].1':
|
||||
resolution: {integrity: sha512-Qba+8OpQQAbWrmq3u1olh6jqE/vyW4OYJe6TLrrTBpXhjJhbY7Os69wyVvMQmNA64KJhGd5nQ/c7l4io8tPCHQ==}
|
||||
'@vitest/[email protected].0':
|
||||
resolution: {integrity: sha512-+ZFta25nWtGCOBG9/IET8w1RO5Oawsd6H8Uf6AJ9EA/StFuKVtKAEJEJ6uRt84OH+T4YkI0ASmIHAhRA+0KVxw==}
|
||||
engines: {node: '>=22'}
|
||||
|
||||
'@vitest/[email protected].2':
|
||||
resolution: {integrity: sha512-UGc97wUIy0Ji2+9GxzHEJiOhiwkaukgE7VYcUNnjpX3sWnwQ8XogmNXX4WyOukxYgKb8Nh2XFa7KId0ZjpmVhQ==}
|
||||
'@vitest/[email protected].1':
|
||||
resolution: {integrity: sha512-b2OgTB4+3ImWIVafXKazJXwLKwQxUNnix6b3xUvUTMh7RyXlrtzoxfZr8aEz9zkHOMAS4K5lu3TvFWoiVeVTQg==}
|
||||
peerDependencies:
|
||||
msw: ^2.4.9 || ^3.0.0
|
||||
vite: ^6.0.0 || ^7.0.0 || ^8.0.0
|
||||
@@ -3908,8 +3908,8 @@ packages:
|
||||
vite:
|
||||
optional: true
|
||||
|
||||
'@vitest/[email protected].2':
|
||||
resolution: {integrity: sha512-PQl0/3+p9GaY71+MHywN6oyHfLhVDD5kcbm7oNRldA2F0ExMU3S8RQdnpteJ9gFAdK5P6KCgE6LqCpUgy57KzA==}
|
||||
'@vitest/[email protected].1':
|
||||
resolution: {integrity: sha512-6K8C6alQG1/Yc8/ZI22iJS7JEsxPdVzqtqDq+/xM4Z0mGVykemMVjLhqMy/q6/IHYG3kKD8hKSwRen/ZdyI9vQ==}
|
||||
|
||||
'@vscode/[email protected]':
|
||||
resolution: {integrity: sha512-KYSIHVmslkaCDyw013pphY+d7x1qV8IZupYfeIfzNA+nsaWHbn5uPuQRvdRFsa9zFzGeudPuoGoZ1Op4jrJXIQ==}
|
||||
@@ -4172,8 +4172,8 @@ packages:
|
||||
resolution: {integrity: sha512-Q+JC7Whu8HhmTdBph/Tq59IoRtoy6KAm5zzPv00WdujX82lbAL8K7WVjne7vdCsAmbF4AYaDOPyO3k0kl8qIrw==}
|
||||
engines: {node: '>=0.10.0'}
|
||||
|
||||
[email protected].8:
|
||||
resolution: {integrity: sha512-lPdpagk13ANXV+HClJEpCZM7kUsl5XcvgqKzZhaj6Ve1ZFICcY2sGhAN1n1vT0tML6EclT7bfVgTxqL57Gkpow==}
|
||||
[email protected].7:
|
||||
resolution: {integrity: sha512-kFL68AG6ajd8fg248zwM9GQrUWEp79gsmjum34OEXjs4yHuUMZfYKwOLW9GMmB4oNvVrj+EAGxsP7ye2UR9UlA==}
|
||||
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-j0s3bzYq9yKIVLKGE/tWlCpa3PfFLcrDZLTSVdnnCTGagXuXBJO4SsY9Xdk/fQBirCkH4evW5xOeJXqlAQFdsw==}
|
||||
@@ -5521,8 +5521,8 @@ packages:
|
||||
engines: {node: ^14.13.1 || >=16.0.0}
|
||||
hasBin: true
|
||||
|
||||
[email protected]4:
|
||||
resolution: {integrity: sha512-n13hx2WxkTyMJMX63ZRgx8bNuPeplezhXo6vWITmgt1PguHbenOH7bj7T546nAh10gYvkyquCzXgQ7mxxoRIWQ==}
|
||||
[email protected]3:
|
||||
resolution: {integrity: sha512-6oNfW3c1t44O7jVXu0tp4E5MbHifWlXrHlZBPt6y7vFdgLOUUh8hyzoRhfUgozlBUK6oLLYhqP1uIqbZ8ggcBA==}
|
||||
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-TwAZM+zE5Tq3lrEHvOlvwgj1XLWQCtaaibSN11Q+gGBAS7Y1uZSWwXXRe4iF6OXnaq1riyQAPFOBtYc77Mxq0g==}
|
||||
@@ -7821,20 +7821,20 @@ packages:
|
||||
yaml:
|
||||
optional: true
|
||||
|
||||
[email protected].2:
|
||||
resolution: {integrity: sha512-VIa2wXV208WraXUbzH+dQUrGcFpPuaiRA8HlhXS8R6/sy9cynw6OMqGj8fmAlH1hot7huTCtWUE14+FdXU3eLw==}
|
||||
[email protected].1:
|
||||
resolution: {integrity: sha512-trVmzUFOSraCZcI3uZIMD5FqBh4atFkC/XuJP/IU7qtyQay0FCs3Ia+0QiQ2JJwGyWG/xrcBoJNel2+O7kEZ0g==}
|
||||
engines: {node: ^22.12.0 || ^24.0.0 || >=26.0.0}
|
||||
hasBin: true
|
||||
peerDependencies:
|
||||
'@edge-runtime/vm': '*'
|
||||
'@opentelemetry/api': ^1.9.0
|
||||
'@types/node': ^22.0.0 || >=24.0.0
|
||||
'@vitest/browser-playwright': 5.1.2
|
||||
'@vitest/browser-preview': 5.1.2
|
||||
'@vitest/browser-playwright': 5.1.1
|
||||
'@vitest/browser-preview': 5.1.1
|
||||
'@vitest/browser-webdriverio': ^5.0.0-beta.5 || >=5.0.0
|
||||
'@vitest/coverage-istanbul': 5.1.2
|
||||
'@vitest/coverage-v8': 5.1.2
|
||||
'@vitest/ui': 5.1.2
|
||||
'@vitest/coverage-istanbul': 5.1.1
|
||||
'@vitest/coverage-v8': 5.1.1
|
||||
'@vitest/ui': 5.1.1
|
||||
happy-dom: '*'
|
||||
jsdom: '*'
|
||||
vite: ^6.4.0 || ^7.0.0 || ^8.0.0
|
||||
@@ -9500,21 +9500,21 @@ snapshots:
|
||||
'@codemirror/language': 6.13.1
|
||||
'@codemirror/state': 6.7.6
|
||||
'@codemirror/view': 6.44.0
|
||||
'@lezer/common': 1.5.7
|
||||
'@lezer/common': 1.5.6
|
||||
|
||||
'@codemirror/[email protected]':
|
||||
dependencies:
|
||||
'@codemirror/language': 6.13.1
|
||||
'@codemirror/state': 6.7.6
|
||||
'@codemirror/view': 6.44.0
|
||||
'@lezer/common': 1.5.7
|
||||
'@lezer/common': 1.5.6
|
||||
|
||||
'@codemirror/[email protected]':
|
||||
dependencies:
|
||||
'@codemirror/autocomplete': 6.20.4
|
||||
'@codemirror/language': 6.13.1
|
||||
'@codemirror/state': 6.7.6
|
||||
'@lezer/common': 1.5.7
|
||||
'@lezer/common': 1.5.6
|
||||
'@lezer/css': 1.3.6
|
||||
|
||||
'@codemirror/[email protected]':
|
||||
@@ -9525,7 +9525,7 @@ snapshots:
|
||||
'@codemirror/language': 6.13.1
|
||||
'@codemirror/state': 6.7.6
|
||||
'@codemirror/view': 6.44.0
|
||||
'@lezer/common': 1.5.7
|
||||
'@lezer/common': 1.5.6
|
||||
'@lezer/css': 1.3.6
|
||||
'@lezer/html': 1.3.13
|
||||
|
||||
@@ -9536,7 +9536,7 @@ snapshots:
|
||||
'@codemirror/lint': 6.9.8
|
||||
'@codemirror/state': 6.7.6
|
||||
'@codemirror/view': 6.44.0
|
||||
'@lezer/common': 1.5.7
|
||||
'@lezer/common': 1.5.6
|
||||
'@lezer/javascript': 1.5.4
|
||||
|
||||
'@codemirror/[email protected]':
|
||||
@@ -9546,7 +9546,7 @@ snapshots:
|
||||
'@codemirror/language': 6.13.1
|
||||
'@codemirror/state': 6.7.6
|
||||
'@codemirror/view': 6.44.0
|
||||
'@lezer/common': 1.5.7
|
||||
'@lezer/common': 1.5.6
|
||||
'@lezer/highlight': 1.2.5
|
||||
'@lezer/lr': 1.4.10
|
||||
|
||||
@@ -9555,7 +9555,7 @@ snapshots:
|
||||
'@codemirror/autocomplete': 6.20.4
|
||||
'@codemirror/language': 6.13.1
|
||||
'@codemirror/state': 6.7.6
|
||||
'@lezer/common': 1.5.7
|
||||
'@lezer/common': 1.5.6
|
||||
'@lezer/python': 1.1.19
|
||||
|
||||
'@codemirror/[email protected]':
|
||||
@@ -9563,7 +9563,7 @@ snapshots:
|
||||
'@codemirror/autocomplete': 6.20.4
|
||||
'@codemirror/language': 6.13.1
|
||||
'@codemirror/state': 6.7.6
|
||||
'@lezer/common': 1.5.7
|
||||
'@lezer/common': 1.5.6
|
||||
'@lezer/highlight': 1.2.5
|
||||
'@lezer/lr': 1.4.10
|
||||
'@lezer/yaml': 1.0.4
|
||||
@@ -9573,7 +9573,7 @@ snapshots:
|
||||
'@codemirror/state': 6.7.6
|
||||
'@codemirror/streamparser': 6.0.0
|
||||
'@codemirror/view': 6.44.0
|
||||
'@lezer/common': 1.5.7
|
||||
'@lezer/common': 1.5.6
|
||||
'@lezer/highlight': 1.2.5
|
||||
'@lezer/lr': 1.4.10
|
||||
style-mod: 4.1.3
|
||||
@@ -9919,12 +9919,12 @@ snapshots:
|
||||
dependencies:
|
||||
is-negated-glob: 1.0.0
|
||||
|
||||
'@home-assistant/[email protected](@floating-ui/[email protected])(@types/[email protected].4)':
|
||||
'@home-assistant/[email protected](@floating-ui/[email protected])(@types/[email protected].2)':
|
||||
dependencies:
|
||||
'@ctrl/tinycolor': 4.1.0
|
||||
'@floating-ui/dom': 1.8.0
|
||||
'@konnorr/qr-creator': 1.1.0
|
||||
'@lit-labs/ssr': 4.1.0(@types/[email protected].4)
|
||||
'@lit-labs/ssr': 4.1.0(@types/[email protected].2)
|
||||
'@lit-labs/ssr-client': 1.1.8
|
||||
'@lit/context': 1.1.6
|
||||
'@lit/react': 1.0.8
|
||||
@@ -9939,40 +9939,40 @@ snapshots:
|
||||
- '@types/node'
|
||||
- '@types/react'
|
||||
|
||||
'@html-eslint/[email protected]9.0':
|
||||
'@html-eslint/[email protected]8.0':
|
||||
dependencies:
|
||||
'@html-eslint/types': 0.69.0
|
||||
html-standard: 0.0.14
|
||||
'@html-eslint/types': 0.68.0
|
||||
html-standard: 0.0.13
|
||||
|
||||
'@html-eslint/[email protected]9.0([email protected]([email protected]))':
|
||||
'@html-eslint/[email protected]8.0([email protected]([email protected]))':
|
||||
dependencies:
|
||||
'@eslint/plugin-kit': 0.4.1
|
||||
'@html-eslint/core': 0.69.0
|
||||
'@html-eslint/parser': 0.69.0
|
||||
'@html-eslint/template-parser': 0.69.0
|
||||
'@html-eslint/template-syntax-parser': 0.69.0
|
||||
'@html-eslint/types': 0.69.0
|
||||
'@html-eslint/core': 0.68.0
|
||||
'@html-eslint/parser': 0.68.0
|
||||
'@html-eslint/template-parser': 0.68.0
|
||||
'@html-eslint/template-syntax-parser': 0.68.0
|
||||
'@html-eslint/types': 0.68.0
|
||||
'@rviscomi/capo.js': 2.2.1
|
||||
eslint: 10.15.0([email protected])
|
||||
html-standard: 0.0.14
|
||||
html-standard: 0.0.13
|
||||
|
||||
'@html-eslint/[email protected]9.0':
|
||||
'@html-eslint/[email protected]8.0':
|
||||
dependencies:
|
||||
'@html-eslint/template-syntax-parser': 0.69.0
|
||||
'@html-eslint/types': 0.69.0
|
||||
'@html-eslint/template-syntax-parser': 0.68.0
|
||||
'@html-eslint/types': 0.68.0
|
||||
css-tree: 3.2.1
|
||||
es-html-parser: 0.3.2
|
||||
|
||||
'@html-eslint/[email protected]9.0':
|
||||
'@html-eslint/[email protected]8.0':
|
||||
dependencies:
|
||||
'@html-eslint/types': 0.69.0
|
||||
'@html-eslint/types': 0.68.0
|
||||
es-html-parser: 0.3.2
|
||||
|
||||
'@html-eslint/[email protected]9.0':
|
||||
'@html-eslint/[email protected]8.0':
|
||||
dependencies:
|
||||
'@html-eslint/types': 0.69.0
|
||||
'@html-eslint/types': 0.68.0
|
||||
|
||||
'@html-eslint/[email protected]9.0':
|
||||
'@html-eslint/[email protected]8.0':
|
||||
dependencies:
|
||||
'@types/css-tree': 2.3.11
|
||||
'@types/estree': 1.0.9
|
||||
@@ -10111,43 +10111,43 @@ snapshots:
|
||||
|
||||
'@konnorr/[email protected]': {}
|
||||
|
||||
'@lezer/[email protected].7': {}
|
||||
'@lezer/[email protected].6': {}
|
||||
|
||||
'@lezer/[email protected]':
|
||||
dependencies:
|
||||
'@lezer/common': 1.5.7
|
||||
'@lezer/common': 1.5.6
|
||||
'@lezer/highlight': 1.2.5
|
||||
'@lezer/lr': 1.4.10
|
||||
|
||||
'@lezer/[email protected]':
|
||||
dependencies:
|
||||
'@lezer/common': 1.5.7
|
||||
'@lezer/common': 1.5.6
|
||||
|
||||
'@lezer/[email protected]':
|
||||
dependencies:
|
||||
'@lezer/common': 1.5.7
|
||||
'@lezer/common': 1.5.6
|
||||
'@lezer/highlight': 1.2.5
|
||||
'@lezer/lr': 1.4.10
|
||||
|
||||
'@lezer/[email protected]':
|
||||
dependencies:
|
||||
'@lezer/common': 1.5.7
|
||||
'@lezer/common': 1.5.6
|
||||
'@lezer/highlight': 1.2.5
|
||||
'@lezer/lr': 1.4.10
|
||||
|
||||
'@lezer/[email protected]':
|
||||
dependencies:
|
||||
'@lezer/common': 1.5.7
|
||||
'@lezer/common': 1.5.6
|
||||
|
||||
'@lezer/[email protected]':
|
||||
dependencies:
|
||||
'@lezer/common': 1.5.7
|
||||
'@lezer/common': 1.5.6
|
||||
'@lezer/highlight': 1.2.5
|
||||
'@lezer/lr': 1.4.10
|
||||
|
||||
'@lezer/[email protected]':
|
||||
dependencies:
|
||||
'@lezer/common': 1.5.7
|
||||
'@lezer/common': 1.5.6
|
||||
'@lezer/highlight': 1.2.5
|
||||
'@lezer/lr': 1.4.10
|
||||
|
||||
@@ -10168,7 +10168,7 @@ snapshots:
|
||||
|
||||
'@lit-labs/[email protected]': {}
|
||||
|
||||
'@lit-labs/[email protected](@types/[email protected].4)':
|
||||
'@lit-labs/[email protected](@types/[email protected].2)':
|
||||
dependencies:
|
||||
'@lit-labs/ssr-client': 1.1.8
|
||||
'@lit-labs/ssr-dom-shim': 1.6.0
|
||||
@@ -10181,7 +10181,7 @@ snapshots:
|
||||
node-fetch: 3.3.2
|
||||
parse5: 7.3.0
|
||||
optionalDependencies:
|
||||
'@types/node': 24.19.4
|
||||
'@types/node': 24.19.2
|
||||
|
||||
'@lit-labs/[email protected]':
|
||||
dependencies:
|
||||
@@ -10222,9 +10222,9 @@ snapshots:
|
||||
dependencies:
|
||||
kdbush: 4.1.0
|
||||
|
||||
'@maplibre/[email protected](@types/[email protected]3)([email protected])([email protected])':
|
||||
'@maplibre/[email protected](@types/[email protected]2)([email protected])([email protected])':
|
||||
dependencies:
|
||||
'@types/leaflet': 1.9.23
|
||||
'@types/leaflet': 1.9.22
|
||||
leaflet: 1.9.4
|
||||
maplibre-gl: 6.19.0
|
||||
|
||||
@@ -11349,13 +11349,13 @@ snapshots:
|
||||
|
||||
'@types/[email protected]':
|
||||
dependencies:
|
||||
'@types/node': 24.19.4
|
||||
'@types/node': 24.19.2
|
||||
|
||||
'@types/[email protected]': {}
|
||||
|
||||
'@types/[email protected]':
|
||||
dependencies:
|
||||
'@types/node': 24.19.4
|
||||
'@types/node': 24.19.2
|
||||
|
||||
'@types/[email protected]': {}
|
||||
|
||||
@@ -11393,9 +11393,9 @@ snapshots:
|
||||
|
||||
'@types/[email protected]':
|
||||
dependencies:
|
||||
'@types/leaflet': 1.9.23
|
||||
'@types/leaflet': 1.9.22
|
||||
|
||||
'@types/[email protected]3':
|
||||
'@types/[email protected]2':
|
||||
dependencies:
|
||||
'@types/geojson': 7946.0.16
|
||||
|
||||
@@ -11411,7 +11411,7 @@ snapshots:
|
||||
dependencies:
|
||||
undici-types: 5.26.5
|
||||
|
||||
'@types/[email protected].4':
|
||||
'@types/[email protected].2':
|
||||
dependencies:
|
||||
undici-types: 7.24.6
|
||||
|
||||
@@ -11419,11 +11419,11 @@ snapshots:
|
||||
|
||||
'@types/[email protected]':
|
||||
dependencies:
|
||||
'@types/node': 24.19.4
|
||||
'@types/node': 24.19.2
|
||||
|
||||
'@types/[email protected]':
|
||||
dependencies:
|
||||
'@types/node': 24.19.4
|
||||
'@types/node': 24.19.2
|
||||
|
||||
'@types/[email protected]': {}
|
||||
|
||||
@@ -11441,7 +11441,7 @@ snapshots:
|
||||
|
||||
'@types/[email protected]':
|
||||
dependencies:
|
||||
'@types/node': 24.19.4
|
||||
'@types/node': 24.19.2
|
||||
|
||||
'@typescript-eslint/[email protected](@typescript-eslint/[email protected]([email protected]([email protected]))([email protected])([email protected])([email protected]))([email protected]([email protected]))([email protected])([email protected])([email protected])':
|
||||
dependencies:
|
||||
@@ -11731,34 +11731,34 @@ snapshots:
|
||||
dependencies:
|
||||
'@vibrant/types': 4.0.4
|
||||
|
||||
'@vitest/[email protected].2([email protected].2)':
|
||||
'@vitest/[email protected].1([email protected].1)':
|
||||
dependencies:
|
||||
'@bcoe/v8-coverage': 1.0.2
|
||||
'@vitest/istanbul-lib-coverage': 2.1.1
|
||||
'@vitest/istanbul-lib-report': 2.1.1
|
||||
ast-v8-to-istanbul: 1.0.8
|
||||
'@vitest/istanbul-lib-coverage': 2.1.0
|
||||
'@vitest/istanbul-lib-report': 2.1.0
|
||||
ast-v8-to-istanbul: 1.0.7
|
||||
magicast: 0.5.5
|
||||
obug: 3.0.0
|
||||
std-env: 4.3.0
|
||||
tinyrainbow: 3.2.0
|
||||
vitest: 5.1.2(@types/[email protected].4)(@vitest/[email protected].2)([email protected])([email protected](@types/[email protected].4)([email protected])([email protected]))
|
||||
vitest: 5.1.1(@types/[email protected].2)(@vitest/[email protected].1)([email protected])([email protected](@types/[email protected].2)([email protected])([email protected]))
|
||||
|
||||
'@vitest/[email protected].1': {}
|
||||
'@vitest/[email protected].0': {}
|
||||
|
||||
'@vitest/[email protected].1':
|
||||
'@vitest/[email protected].0':
|
||||
dependencies:
|
||||
'@vitest/istanbul-lib-coverage': 2.1.1
|
||||
'@vitest/istanbul-lib-coverage': 2.1.0
|
||||
|
||||
'@vitest/[email protected].2([email protected](@types/[email protected].4)([email protected])([email protected]))':
|
||||
'@vitest/[email protected].1([email protected](@types/[email protected].2)([email protected])([email protected]))':
|
||||
dependencies:
|
||||
'@jridgewell/trace-mapping': 0.3.31
|
||||
'@vitest/spy': 5.1.2
|
||||
'@vitest/spy': 5.1.1
|
||||
estree-walker: 3.0.3
|
||||
magic-string: 1.4.5
|
||||
optionalDependencies:
|
||||
vite: 8.3.8(@types/[email protected].4)([email protected])([email protected])
|
||||
vite: 8.3.8(@types/[email protected].2)([email protected])([email protected])
|
||||
|
||||
'@vitest/[email protected].2': {}
|
||||
'@vitest/[email protected].1': {}
|
||||
|
||||
'@vscode/[email protected]': {}
|
||||
|
||||
@@ -11955,7 +11955,7 @@ snapshots:
|
||||
|
||||
[email protected]: {}
|
||||
|
||||
[email protected].8:
|
||||
[email protected].7:
|
||||
dependencies:
|
||||
'@jridgewell/trace-mapping': 0.3.31
|
||||
estree-walker: 3.0.3
|
||||
@@ -12692,7 +12692,7 @@ snapshots:
|
||||
[email protected]([email protected]):
|
||||
dependencies:
|
||||
'@types/cors': 2.8.19
|
||||
'@types/node': 24.19.4
|
||||
'@types/node': 24.19.2
|
||||
'@types/ws': 8.18.1
|
||||
accepts: 1.3.8
|
||||
base64id: 2.0.0
|
||||
@@ -13480,7 +13480,7 @@ snapshots:
|
||||
relateurl: 0.2.7
|
||||
terser: 5.50.0
|
||||
|
||||
[email protected]4:
|
||||
[email protected]3:
|
||||
dependencies:
|
||||
vscode-css-languageservice: 6.3.10
|
||||
vscode-languageserver-textdocument: 1.0.13
|
||||
@@ -13806,7 +13806,7 @@ snapshots:
|
||||
|
||||
[email protected]:
|
||||
dependencies:
|
||||
'@types/node': 24.19.4
|
||||
'@types/node': 24.19.2
|
||||
merge-stream: 2.0.0
|
||||
supports-color: 8.1.1
|
||||
|
||||
@@ -15963,17 +15963,17 @@ snapshots:
|
||||
- bare-abort-controller
|
||||
- react-native-b4a
|
||||
|
||||
[email protected]([email protected])([email protected])([email protected](@types/[email protected].4)([email protected])([email protected])):
|
||||
[email protected]([email protected])([email protected])([email protected](@types/[email protected].2)([email protected])([email protected])):
|
||||
dependencies:
|
||||
debug: 4.4.3([email protected])
|
||||
globrex: 0.1.2
|
||||
tsconfck: 3.1.6([email protected])
|
||||
vite: 8.3.8(@types/[email protected].4)([email protected])([email protected])
|
||||
vite: 8.3.8(@types/[email protected].2)([email protected])([email protected])
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
- typescript
|
||||
|
||||
[email protected](@types/[email protected].4)([email protected])([email protected]):
|
||||
[email protected](@types/[email protected].2)([email protected])([email protected]):
|
||||
dependencies:
|
||||
lightningcss: 1.33.0
|
||||
picomatch: 4.0.7
|
||||
@@ -15981,15 +15981,15 @@ snapshots:
|
||||
rolldown: 1.2.18
|
||||
tinyglobby: 0.2.17
|
||||
optionalDependencies:
|
||||
'@types/node': 24.19.4
|
||||
'@types/node': 24.19.2
|
||||
fsevents: 2.3.3
|
||||
terser: 5.50.0
|
||||
yaml: 2.9.1
|
||||
|
||||
[email protected].2(@types/[email protected].4)(@vitest/[email protected].2)([email protected])([email protected](@types/[email protected].4)([email protected])([email protected])):
|
||||
[email protected].1(@types/[email protected].2)(@vitest/[email protected].1)([email protected])([email protected](@types/[email protected].2)([email protected])([email protected])):
|
||||
dependencies:
|
||||
'@types/chai': 5.2.3
|
||||
'@vitest/mocker': 5.1.2([email protected](@types/[email protected].4)([email protected])([email protected]))
|
||||
'@vitest/mocker': 5.1.1([email protected](@types/[email protected].2)([email protected])([email protected]))
|
||||
chai: 6.3.0
|
||||
es-module-lexer: 2.3.2
|
||||
expect-type: 1.4.0
|
||||
@@ -16000,11 +16000,11 @@ snapshots:
|
||||
tinybench: 6.2.3
|
||||
tinyexec: 1.3.1
|
||||
tinyglobby: 0.2.17
|
||||
vite: 8.3.8(@types/[email protected].4)([email protected])([email protected])
|
||||
vite: 8.3.8(@types/[email protected].2)([email protected])([email protected])
|
||||
why-is-node-running: 3.2.1
|
||||
optionalDependencies:
|
||||
'@types/node': 24.19.4
|
||||
'@vitest/coverage-v8': 5.1.2([email protected].2)
|
||||
'@types/node': 24.19.2
|
||||
'@vitest/coverage-v8': 5.1.1([email protected].1)
|
||||
jsdom: 31.0.1
|
||||
transitivePeerDependencies:
|
||||
- msw
|
||||
|
||||
+10
-4
@@ -999,7 +999,16 @@ const getEnergyData = async (
|
||||
let _waterStatsCompare: Statistics | Promise<Statistics> = {};
|
||||
let _gasEnergyStatsCompare: Statistics | Promise<Statistics> = {};
|
||||
if (compare) {
|
||||
if (compare === CompareMode.PREVIOUS) {
|
||||
let compareMode = compare;
|
||||
if (compareMode === CompareMode.YOY) {
|
||||
startCompare = calcDate(start, addYears, locale, config, -1);
|
||||
endCompare = calcDate(end || new Date(), addYears, locale, config, -1);
|
||||
// From a year on, the previous year touches the period itself.
|
||||
if (endCompare >= addMilliseconds(start, -1)) {
|
||||
compareMode = CompareMode.PREVIOUS;
|
||||
}
|
||||
}
|
||||
if (compareMode === CompareMode.PREVIOUS) {
|
||||
if (
|
||||
(calcDateProperty(
|
||||
start,
|
||||
@@ -1038,9 +1047,6 @@ const getEnergyData = async (
|
||||
);
|
||||
}
|
||||
endCompare = addMilliseconds(start, -1);
|
||||
} else if (compare === CompareMode.YOY) {
|
||||
startCompare = calcDate(start, addYears, locale, config, -1);
|
||||
endCompare = calcDate(end!, addYears, locale, config, -1);
|
||||
}
|
||||
[periodStartCompare, periodEndCompare] = getStatisticsRange(
|
||||
locale,
|
||||
|
||||
@@ -149,7 +149,7 @@ export class HuiEnergyPeriodSelector extends LitElement {
|
||||
|
||||
@state() private _ranges: DateRangePickerRanges = {};
|
||||
|
||||
@state() private _compare = false;
|
||||
@state() private _compareMode = CompareMode.NONE;
|
||||
|
||||
@state() private _combineSources?: boolean;
|
||||
|
||||
@@ -283,13 +283,28 @@ export class HuiEnergyPeriodSelector extends LitElement {
|
||||
action: () => this._pickNow(),
|
||||
},
|
||||
{
|
||||
path: this._compare ? mdiCheckboxOutline : mdiCheckboxBlankOutline,
|
||||
path:
|
||||
this._compareMode === CompareMode.PREVIOUS
|
||||
? mdiCheckboxOutline
|
||||
: mdiCheckboxBlankOutline,
|
||||
disabled: !this.allowCompare,
|
||||
alwaysCollapse: true,
|
||||
label: this._i18n.localize(
|
||||
"ui.panel.lovelace.components.energy_period_selector.compare"
|
||||
),
|
||||
action: () => this._toggleCompare(),
|
||||
action: () => this._toggleCompare(CompareMode.PREVIOUS),
|
||||
},
|
||||
{
|
||||
path:
|
||||
this._compareMode === CompareMode.YOY
|
||||
? mdiCheckboxOutline
|
||||
: mdiCheckboxBlankOutline,
|
||||
disabled: !this.allowCompare,
|
||||
alwaysCollapse: true,
|
||||
label: this._i18n.localize(
|
||||
"ui.panel.lovelace.components.energy_period_selector.compare_previous_year"
|
||||
),
|
||||
action: () => this._toggleCompare(CompareMode.YOY),
|
||||
},
|
||||
{
|
||||
path: this._combineSources
|
||||
@@ -764,7 +779,7 @@ export class HuiEnergyPeriodSelector extends LitElement {
|
||||
this._removeLoadingIndicatorWithoutTransition();
|
||||
}
|
||||
this._loading = false;
|
||||
this._compare = energyData.startCompare !== undefined;
|
||||
this._compareMode = energyData.compareMode || CompareMode.NONE;
|
||||
this._combineSources = energyData.combineSources;
|
||||
this._hasCombinableSources = hasCombinableEnergySources(energyData.prefs);
|
||||
this._applyDefaultCombineSources();
|
||||
@@ -776,13 +791,11 @@ export class HuiEnergyPeriodSelector extends LitElement {
|
||||
this._datepickerOpen = ev.detail.open;
|
||||
}
|
||||
|
||||
private _toggleCompare() {
|
||||
private _toggleCompare(mode: CompareMode) {
|
||||
const energyCollection = this._energyCollection.collection;
|
||||
if (!energyCollection) return;
|
||||
this._compare = !this._compare;
|
||||
energyCollection.setCompare(
|
||||
this._compare ? CompareMode.PREVIOUS : CompareMode.NONE
|
||||
);
|
||||
this._compareMode = this._compareMode === mode ? CompareMode.NONE : mode;
|
||||
energyCollection.setCompare(this._compareMode);
|
||||
energyCollection.refresh();
|
||||
this._scheduleLoadingIndicator();
|
||||
}
|
||||
|
||||
@@ -2422,7 +2422,7 @@
|
||||
},
|
||||
"recreate_entity_ids": {
|
||||
"confirm_rename_title": "Are you sure you want to recreate your entity IDs?",
|
||||
"confirm_rename_warning": "This will not update any configuration (like automations, scripts, scenes, dashboards) that is currently using these entities! You will have to manually edit them yourself to use the new entity IDs!",
|
||||
"confirm_rename_warning": "This will not change any configuration (like automations, scripts, scenes, dashboards) that is currently using these entities! You will have to manually edit them yourself to use the new entity IDs!",
|
||||
"will_rename": "{count} {count, plural,\n one {entity ID}\n other {entity IDs}\n} will be renamed",
|
||||
"new": "New",
|
||||
"old": "Old",
|
||||
@@ -12811,7 +12811,8 @@
|
||||
"now": "Now",
|
||||
"previous": "Previous",
|
||||
"next": "Next",
|
||||
"compare": "Compare data",
|
||||
"compare": "Compare to previous period",
|
||||
"compare_previous_year": "Compare to previous year",
|
||||
"combine_sources": "Combine sources",
|
||||
"download_data": "[%key:ui::panel::history::download_data%]"
|
||||
}
|
||||
|
||||
@@ -2258,7 +2258,11 @@ describe("getEnergyDataCollection gas energy unit", () => {
|
||||
gasUnits: Record<string, string>,
|
||||
compare?: CompareMode,
|
||||
deviceStatIds: string[] = [],
|
||||
otherSources: EnergySource[] = []
|
||||
otherSources: EnergySource[] = [],
|
||||
period: [Date, Date] = [
|
||||
new Date(2026, 8, 18),
|
||||
endOfDay(new Date(2026, 8, 21)),
|
||||
]
|
||||
) => {
|
||||
vi.useFakeTimers();
|
||||
vi.setSystemTime(new Date("2026-09-28T12:00:00Z"));
|
||||
@@ -2309,10 +2313,7 @@ describe("getEnergyDataCollection gas energy unit", () => {
|
||||
],
|
||||
},
|
||||
});
|
||||
collection.setPeriod(
|
||||
new Date(2026, 8, 18),
|
||||
endOfDay(new Date(2026, 8, 21))
|
||||
);
|
||||
collection.setPeriod(...period);
|
||||
if (compare) {
|
||||
collection.setCompare(compare);
|
||||
}
|
||||
@@ -2450,6 +2451,39 @@ describe("getEnergyDataCollection gas energy unit", () => {
|
||||
);
|
||||
assert.equal(thermRequests.length, 2);
|
||||
});
|
||||
|
||||
it.each([
|
||||
[
|
||||
"the same days a year earlier",
|
||||
[new Date(2026, 8, 18), endOfDay(new Date(2026, 8, 21))],
|
||||
[new Date(2025, 8, 18), endOfDay(new Date(2025, 8, 21))],
|
||||
],
|
||||
[
|
||||
"the previous period once it spans a year",
|
||||
[new Date(2024, 0, 1), endOfDay(new Date(2025, 11, 31))],
|
||||
[new Date(2022, 0, 1), endOfDay(new Date(2023, 11, 31))],
|
||||
],
|
||||
[
|
||||
"the previous period for a year of days across Feb 29",
|
||||
[new Date(2023, 2, 16), endOfDay(new Date(2024, 2, 15))],
|
||||
[new Date(2022, 2, 15), endOfDay(new Date(2023, 2, 15))],
|
||||
],
|
||||
] as [string, [Date, Date], [Date, Date]][])(
|
||||
"compares to the previous year with %s",
|
||||
async (_name, period, [startCompare, endCompare]) => {
|
||||
const { data } = await loadGasData(
|
||||
`energy_gas_yoy_${period[0].getFullYear()}`,
|
||||
{ "integration:gas": "kWh" },
|
||||
CompareMode.YOY,
|
||||
[],
|
||||
[],
|
||||
period
|
||||
);
|
||||
assert.equal(data?.compareMode, CompareMode.YOY);
|
||||
assert.equal(data?.startCompare?.getTime(), startCompare.getTime());
|
||||
assert.equal(data?.endCompare?.getTime(), endCompare.getTime());
|
||||
}
|
||||
);
|
||||
});
|
||||
|
||||
describe("getEnergyDefaultPeriodStorageKey", () => {
|
||||
|
||||
Reference in new issue
Block a user