Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
117 commits
Select commit Hold shift + click to select a range
da85ee5
Translation update
May 5, 2021
23c1c2f
Bump wheels to 3.8-alpine3.12 (#9098)
ludeeus May 5, 2021
6e5e262
Show supervisor addon configuration error (#8950)
ludeeus May 5, 2021
2af211b
Guard for undefined values in attribute filtering (#9089)
bramkragten May 5, 2021
7269563
Translation update
May 6, 2021
a71ebcf
Bump js-xss to 1.0.9 (#9121)
spacegaier May 6, 2021
9755bf7
Translation update
May 7, 2021
a94f85a
Fix alignment of Entities card header toggle (#9123)
spacegaier May 7, 2021
abcdd60
Convert GPS to uppercase in attribute name (#9124)
spacegaier May 7, 2021
a9c7a39
Fix positioning of preload checkbox (#9115)
bramkragten May 7, 2021
9be4a00
Update UI when service schema change (#9120)
bramkragten May 7, 2021
cd3ffce
Fix for when the value doesnt get changed by the backend when we send…
bramkragten May 7, 2021
c48a60c
Bump superstruct (#9119)
bramkragten May 7, 2021
0f58214
Bump leaflet + fix location editor (#9118)
bramkragten May 7, 2021
9f032a6
Add compatibility for Lit 2.0 (#8878)
bramkragten May 7, 2021
d308c5d
Add manual limit selection to graph header/footer (#9126)
thomasloven May 7, 2021
83cabca
Add tsc and eslint to pre-commit (#9131)
bramkragten May 7, 2021
4b796b4
Add supervisor_ingress support to my (#9087)
ludeeus May 7, 2021
38b3a92
Translation update
May 8, 2021
6edebe1
Use grid for sensor cards on 2nd view of teaching birds demo (#9132)
balloob May 8, 2021
88dc65b
Dont require manifest for the overflow menu (#9129)
bramkragten May 8, 2021
7f49f03
Close new automation dialog before moving to next step (#9071)
balloob May 8, 2021
4f449e2
Adjust token relative_date wording (#9138)
spacegaier May 8, 2021
12612a1
Translation update
May 9, 2021
15ee87e
Translation update
May 10, 2021
0a8e272
Bump hls.js from v1.0.1 to v1.0.3 (#9147)
uvjustin May 10, 2021
785f614
Bump lodash from 4.17.15 to 4.17.21 (#9154)
dependabot[bot] May 10, 2021
6dc7e85
Use hass-tabs-subpage-data-table for supervisor snapshots (#9103)
ludeeus May 10, 2021
5c46671
Fix missing `customElement` import after Lit 2.0 bump (#9157)
spacegaier May 10, 2021
d4720a9
Align state info in center (#9153)
bramkragten May 10, 2021
9f554f4
Silence babel warnings (#9158)
bramkragten May 10, 2021
d91546b
Bump home-assistant-js-websocket (#9156)
bramkragten May 10, 2021
3575d94
Translation update
May 11, 2021
4e1d10c
Improve UX for counter and input_number helpers (#9061)
mib1185 May 11, 2021
29e8d1c
Bump hosted-git-info from 2.7.1 to 2.8.9 (#9162)
dependabot[bot] May 11, 2021
01b3d2a
Translation update
May 12, 2021
d35168e
Bump chart.js (#9160)
bramkragten May 13, 2021
4910f60
Translation update
May 13, 2021
6a62f05
Translation update
May 14, 2021
2ad2a4b
Bump lokalize deps + support object format for args (#9155)
bramkragten May 14, 2021
b12a10c
Add snapshot contents as secondary info for partial snapshots (#9166)
ludeeus May 14, 2021
fe2fe74
Bump lodash (#9135)
bramkragten May 14, 2021
cc0a120
Switch update and openChangelog button (#9174)
royto May 14, 2021
ebf0bdc
Add duplicate scene functionality (#9175)
emericklaw May 14, 2021
64a117d
Fix yarn.lock
bramkragten May 14, 2021
9f32d72
Translation update
May 15, 2021
f4ffbe6
Remove shadowroot from ha-markdown-element (#9187)
balloob May 15, 2021
37cc670
If we have a link, make it a link (#9181)
balloob May 15, 2021
a6b2299
Translation update
May 16, 2021
0a672c5
Translation update
May 17, 2021
5abb3dd
Use default behaviour for service target (#8650)
bramkragten May 17, 2021
4f731ba
Add guard for non color lights (#9186)
bramkragten May 17, 2021
1f65328
Make slider default for number selector (#9190)
bramkragten May 17, 2021
7e2bf92
Correct types for script automation editors (#9184)
bramkragten May 17, 2021
fd2728c
Fix Z-Wave JS add node wizard and add interview status (#9145)
cgarwood May 17, 2021
f8e8b5a
Trace fixes (#9192)
balloob May 17, 2021
5730c14
Make hassio backwards compat (#9195)
balloob May 17, 2021
07bab7b
Drop app-route (#9196)
balloob May 17, 2021
7890ca8
Bumped version to 20210517.0
balloob May 17, 2021
8d81ed5
Translation update
May 18, 2021
245bb63
Fix URL to jinja template docs (#9198)
ludeeus May 18, 2021
bc92c0b
Upgrade to Lit 2 (#9199)
bramkragten May 18, 2021
1b9286d
Fix lit warnings (#9204)
balloob May 18, 2021
52087c0
Fix _initialize (#9206)
bramkragten May 18, 2021
cb14e1f
Bumped version to 20210518.0
balloob May 18, 2021
0dcf673
Translation update
May 19, 2021
e211d81
Translation update
May 20, 2021
3d0a564
Only apply on Safari 14.0, and not 14.0.1
bramkragten May 20, 2021
87e4c20
Add icon to Entities card schema (#9208)
ZephireNZ May 20, 2021
70a1edd
Allow users to select time format for UI rendering (#9042)
spacegaier May 20, 2021
9328576
Translation update
May 21, 2021
fd9bb4d
Make chrome work-around work in iframes (#9200)
bramkragten May 21, 2021
1255b56
Add missing translations to voice command dialog (#9221)
spacegaier May 21, 2021
f873ef9
Translation update
May 22, 2021
abb9f8e
Remove padding when narrow (#9209)
ludeeus May 22, 2021
d05e02a
Add the Supervisor as an ignorable discovery source (#9229)
frenck May 22, 2021
2ee92f4
Translation update
May 23, 2021
583cc4b
Translation update
May 24, 2021
0af14eb
Add refresh button to state dev tools (#9231)
spacegaier May 24, 2021
ee15ddf
Show correct number of disabled integrations (#9232)
spacegaier May 24, 2021
c78382c
Make it clear that those are the installed add-ons (#9228)
spacegaier May 24, 2021
d425767
Ensure timer row uses correct state translation keys (#9143)
spacegaier May 24, 2021
a4bdc5a
Translation update
May 25, 2021
0a478ee
Fix tabs styling (#9241)
bramkragten May 25, 2021
8af05e2
Optimise data table and device dashboard (#9217)
bramkragten May 25, 2021
7f75ca8
Add support for custom themes to use dark mode (#8347)
spacegaier May 25, 2021
0eca602
Use comboBoxRenderer from lit-vaadin-helpers (#9201)
bramkragten May 25, 2021
1026e90
Put attributes in more-info into a foldable section (#9220)
spacegaier May 25, 2021
21a3a8c
Navigate cleanup (#9202)
ludeeus May 25, 2021
2b8033a
Prevent cutting off of attributes in more-info light (#9219)
spacegaier May 25, 2021
1bb025c
Add log level changed message when user changes Z-Wave JS log level (…
raman325 May 25, 2021
c32a454
Translate NC account connection state (#9167)
spacegaier May 25, 2021
0dd3757
Refresh snapshot create/restore dialogs (#9223)
ludeeus May 25, 2021
d97fb19
Ingress: Wait for dialog to close before navigating (#9250)
bramkragten May 25, 2021
3d4d789
Detect and format date & timestamp attributes (#9074)
spacegaier May 25, 2021
179717d
Fix rollup build (#9246)
bramkragten May 25, 2021
835a783
Bump memoize one (#9243)
bramkragten May 25, 2021
465a91d
Fix circulair progress producing scrollbars (#9247)
bramkragten May 25, 2021
f55e911
Prevent formatting for unknown attribute (#9252)
spacegaier May 25, 2021
de09e31
Fix resetting theme, only fallback to light when theme doesnt support…
bramkragten May 25, 2021
fdcbb5b
Bump js-yaml (#9245)
bramkragten May 25, 2021
cbd6d42
Prevent shrinking of percent value in supervisor metrics (#9033)
spacegaier May 25, 2021
b6c5223
Translation update
May 26, 2021
3cc4628
Bump test dependencies (#9244)
bramkragten May 26, 2021
c4a8899
Bump idb-keyval (#9248)
bramkragten May 26, 2021
fa9c6a7
Replace closing with closed in dialogs (#9257)
ludeeus May 26, 2021
3ef2912
Fix typo in translation key
bramkragten May 26, 2021
5958eb9
Minor dependency bumps (#9249)
bramkragten May 26, 2021
f7ef818
Guard for undefined item in quick bar (#9259)
bramkragten May 26, 2021
27845a7
Fix logbook height (#9258)
bramkragten May 26, 2021
eaccd22
Fix chartjs deprecation warnings (#9261)
bramkragten May 26, 2021
5f56040
Add friendly_name to dev tools "Entity" column + fuzzy search (#7582)
spacegaier May 26, 2021
a66b966
Fix a bunch of updates triggering updated (#9260)
bramkragten May 26, 2021
b0e1f0f
Add network configuration (#9210)
bdraco May 26, 2021
8291a84
Hide network config when not loaded (#9265)
bramkragten May 26, 2021
f3ec09e
Bumped version to 20210526.0
bramkragten May 26, 2021
4b9be7c
Fix entity filtering in dev states (#9268)
bramkragten May 26, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 1 addition & 3 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@
"__BUILD__": false,
"__VERSION__": false,
"__STATIC_PATH__": false,
"Polymer": true,
"webkitSpeechRecognition": false,
"ResizeObserver": false
"Polymer": true
},
"env": {
"browser": true,
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ on:
- published

env:
WHEELS_TAG: 3.7-alpine3.11
PYTHON_VERSION: 3.7
WHEELS_TAG: 3.8-alpine3.12
PYTHON_VERSION: 3.8
NODE_VERSION: 12.1

jobs:
Expand Down
4 changes: 4 additions & 0 deletions .mocharc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
require: "test-mocha/testconf.js",
timeout: 10000,
};
16 changes: 6 additions & 10 deletions build-scripts/bundle.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/no-var-requires */
const path = require("path");
const env = require("./env.js");
const paths = require("./paths.js");
Expand Down Expand Up @@ -53,13 +54,13 @@ module.exports.babelOptions = ({ latestBuild }) => ({
babelrc: false,
presets: [
!latestBuild && [
require("@babel/preset-env").default,
"@babel/preset-env",
{
useBuiltIns: "entry",
corejs: "3.6",
},
],
require("@babel/preset-typescript").default,
"@babel/preset-typescript",
].filter(Boolean),
plugins: [
// Part of ES2018. Converts {...a, b: 2} to Object.assign({}, a, {b: 2})
Expand All @@ -72,14 +73,9 @@ module.exports.babelOptions = ({ latestBuild }) => ({
"@babel/plugin-syntax-dynamic-import",
"@babel/plugin-proposal-optional-chaining",
"@babel/plugin-proposal-nullish-coalescing-operator",
[
require("@babel/plugin-proposal-decorators").default,
{ decoratorsBeforeExport: true },
],
[
require("@babel/plugin-proposal-class-properties").default,
{ loose: true },
],
["@babel/plugin-proposal-decorators", { decoratorsBeforeExport: true }],
["@babel/plugin-proposal-private-methods", { loose: true }],
["@babel/plugin-proposal-class-properties", { loose: true }],
].filter(Boolean),
});

Expand Down
1 change: 1 addition & 0 deletions build-scripts/env.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/no-var-requires */
const fs = require("fs");
const path = require("path");
const paths = require("./paths.js");
Expand Down
1 change: 1 addition & 0 deletions build-scripts/paths.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/no-var-requires */
const path = require("path");

module.exports = {
Expand Down
172 changes: 78 additions & 94 deletions build-scripts/rollup.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/no-var-requires */
const path = require("path");

const commonjs = require("@rollup/plugin-commonjs");
Expand Down Expand Up @@ -32,120 +33,103 @@ const createRollupConfig = ({
publicPath,
dontHash,
isWDS,
}) => {
return {
/**
* @type { import("rollup").InputOptions }
*/
inputOptions: {
input: entry,
// Some entry points contain no JavaScript. This setting silences a warning about that.
// https://rollupjs.org/guide/en/#preserveentrysignatures
preserveEntrySignatures: false,
plugins: [
ignore({
files: bundle.emptyPackages({ latestBuild }),
}) => ({
/**
* @type { import("rollup").InputOptions }
*/
inputOptions: {
input: entry,
// Some entry points contain no JavaScript. This setting silences a warning about that.
// https://rollupjs.org/guide/en/#preserveentrysignatures
preserveEntrySignatures: false,
plugins: [
ignore({
files: bundle.emptyPackages({ latestBuild }),
}),
resolve({
extensions,
preferBuiltins: false,
browser: true,
rootDir: paths.polymer_dir,
}),
commonjs(),
json(),
babel({
...bundle.babelOptions({ latestBuild }),
extensions,
exclude: bundle.babelExclude(),
babelHelpers: isWDS ? "inline" : "bundled",
}),
string({
// Import certain extensions as strings
include: [path.join(paths.polymer_dir, "node_modules/**/*.css")],
}),
replace(bundle.definedVars({ isProdBuild, latestBuild, defineOverlay })),
!isWDS &&
manifest({
publicPath,
}),
resolve({
extensions,
preferBuiltins: false,
browser: true,
rootDir: paths.polymer_dir,
!isWDS && worker(),
!isWDS && dontHashPlugin({ dontHash }),
!isWDS && isProdBuild && terser(bundle.terserOptions(latestBuild)),
!isWDS &&
isStatsBuild &&
visualizer({
// https://github.com/btd/rollup-plugin-visualizer#options
open: true,
sourcemap: true,
}),
commonjs({
namedExports: {
"js-yaml": ["safeDump", "safeLoad"],
},
}),
json(),
babel({
...bundle.babelOptions({ latestBuild }),
extensions,
exclude: bundle.babelExclude(),
babelHelpers: isWDS ? "inline" : "bundled",
}),
string({
// Import certain extensions as strings
include: [path.join(paths.polymer_dir, "node_modules/**/*.css")],
}),
replace(
bundle.definedVars({ isProdBuild, latestBuild, defineOverlay })
),
!isWDS &&
manifest({
publicPath,
}),
!isWDS && worker(),
!isWDS && dontHashPlugin({ dontHash }),
!isWDS && isProdBuild && terser(bundle.terserOptions(latestBuild)),
!isWDS &&
isStatsBuild &&
visualizer({
// https://github.com/btd/rollup-plugin-visualizer#options
open: true,
sourcemap: true,
}),
].filter(Boolean),
},
/**
* @type { import("rollup").OutputOptions }
*/
outputOptions: {
// https://rollupjs.org/guide/en/#outputdir
dir: outputPath,
// https://rollupjs.org/guide/en/#outputformat
format: latestBuild ? "es" : "systemjs",
// https://rollupjs.org/guide/en/#outputexternallivebindings
externalLiveBindings: false,
// https://rollupjs.org/guide/en/#outputentryfilenames
// https://rollupjs.org/guide/en/#outputchunkfilenames
// https://rollupjs.org/guide/en/#outputassetfilenames
entryFileNames:
isProdBuild && !isStatsBuild ? "[name]-[hash].js" : "[name].js",
chunkFileNames:
isProdBuild && !isStatsBuild ? "c.[hash].js" : "[name].js",
assetFileNames:
isProdBuild && !isStatsBuild ? "a.[hash].js" : "[name].js",
// https://rollupjs.org/guide/en/#outputsourcemap
sourcemap: isProdBuild ? true : "inline",
},
};
};
].filter(Boolean),
},
/**
* @type { import("rollup").OutputOptions }
*/
outputOptions: {
// https://rollupjs.org/guide/en/#outputdir
dir: outputPath,
// https://rollupjs.org/guide/en/#outputformat
format: latestBuild ? "es" : "systemjs",
// https://rollupjs.org/guide/en/#outputexternallivebindings
externalLiveBindings: false,
// https://rollupjs.org/guide/en/#outputentryfilenames
// https://rollupjs.org/guide/en/#outputchunkfilenames
// https://rollupjs.org/guide/en/#outputassetfilenames
entryFileNames:
isProdBuild && !isStatsBuild ? "[name]-[hash].js" : "[name].js",
chunkFileNames: isProdBuild && !isStatsBuild ? "c.[hash].js" : "[name].js",
assetFileNames: isProdBuild && !isStatsBuild ? "a.[hash].js" : "[name].js",
// https://rollupjs.org/guide/en/#outputsourcemap
sourcemap: isProdBuild ? true : "inline",
},
});

const createAppConfig = ({ isProdBuild, latestBuild, isStatsBuild, isWDS }) => {
return createRollupConfig(
const createAppConfig = ({ isProdBuild, latestBuild, isStatsBuild, isWDS }) =>
createRollupConfig(
bundle.config.app({
isProdBuild,
latestBuild,
isStatsBuild,
isWDS,
})
);
};

const createDemoConfig = ({ isProdBuild, latestBuild, isStatsBuild }) => {
return createRollupConfig(
const createDemoConfig = ({ isProdBuild, latestBuild, isStatsBuild }) =>
createRollupConfig(
bundle.config.demo({
isProdBuild,
latestBuild,
isStatsBuild,
})
);
};

const createCastConfig = ({ isProdBuild, latestBuild }) => {
return createRollupConfig(bundle.config.cast({ isProdBuild, latestBuild }));
};
const createCastConfig = ({ isProdBuild, latestBuild }) =>
createRollupConfig(bundle.config.cast({ isProdBuild, latestBuild }));

const createHassioConfig = ({ isProdBuild, latestBuild }) => {
return createRollupConfig(bundle.config.hassio({ isProdBuild, latestBuild }));
};
const createHassioConfig = ({ isProdBuild, latestBuild }) =>
createRollupConfig(bundle.config.hassio({ isProdBuild, latestBuild }));

const createGalleryConfig = ({ isProdBuild, latestBuild }) => {
return createRollupConfig(
bundle.config.gallery({ isProdBuild, latestBuild })
);
};
const createGalleryConfig = ({ isProdBuild, latestBuild }) =>
createRollupConfig(bundle.config.gallery({ isProdBuild, latestBuild }));

module.exports = {
createAppConfig,
Expand Down
1 change: 1 addition & 0 deletions build-scripts/util.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/no-var-requires */
const path = require("path");
const fs = require("fs");

Expand Down
40 changes: 19 additions & 21 deletions build-scripts/webpack.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
/* eslint-disable @typescript-eslint/no-var-requires */
const webpack = require("webpack");
const path = require("path");
const TerserPlugin = require("terser-webpack-plugin");
const { WebpackManifestPlugin } = require("webpack-manifest-plugin");
const paths = require("./paths.js");
const bundle = require("./bundle");
const bundle = require("./bundle.js");
const log = require("fancy-log");

class LogStartCompilePlugin {
Expand Down Expand Up @@ -94,6 +95,7 @@ const createWebpackConfig = ({
? path.resolve(context, resource)
: require.resolve(resource);
} catch (err) {
// eslint-disable-next-line no-console
console.error(
"Error in Home Assistant ignore plugin",
resource,
Expand All @@ -115,7 +117,7 @@ const createWebpackConfig = ({
new webpack.NormalModuleReplacementPlugin(
new RegExp(
require.resolve(
"lit-virtualizer/lib/uni-virtualizer/lib/polyfillLoaders/EventTarget.js"
"@lit-labs/virtualizer/lib/uni-virtualizer/lib/polyfillLoaders/EventTarget.js"
)
),
path.resolve(paths.polymer_dir, "src/resources/EventTarget-ponyfill.js")
Expand All @@ -124,6 +126,11 @@ const createWebpackConfig = ({
].filter(Boolean),
resolve: {
extensions: [".ts", ".js", ".json"],
alias: {
"lit/decorators$": "lit/decorators.js",
"lit/directive$": "lit/directive.js",
"lit/polyfill-support$": "lit/polyfill-support.js",
},
},
output: {
filename: ({ chunk }) => {
Expand All @@ -144,33 +151,24 @@ const createWebpackConfig = ({
};
};

const createAppConfig = ({ isProdBuild, latestBuild, isStatsBuild }) => {
return createWebpackConfig(
const createAppConfig = ({ isProdBuild, latestBuild, isStatsBuild }) =>
createWebpackConfig(
bundle.config.app({ isProdBuild, latestBuild, isStatsBuild })
);
};

const createDemoConfig = ({ isProdBuild, latestBuild, isStatsBuild }) => {
return createWebpackConfig(
const createDemoConfig = ({ isProdBuild, latestBuild, isStatsBuild }) =>
createWebpackConfig(
bundle.config.demo({ isProdBuild, latestBuild, isStatsBuild })
);
};

const createCastConfig = ({ isProdBuild, latestBuild }) => {
return createWebpackConfig(bundle.config.cast({ isProdBuild, latestBuild }));
};
const createCastConfig = ({ isProdBuild, latestBuild }) =>
createWebpackConfig(bundle.config.cast({ isProdBuild, latestBuild }));

const createHassioConfig = ({ isProdBuild, latestBuild }) => {
return createWebpackConfig(
bundle.config.hassio({ isProdBuild, latestBuild })
);
};
const createHassioConfig = ({ isProdBuild, latestBuild }) =>
createWebpackConfig(bundle.config.hassio({ isProdBuild, latestBuild }));

const createGalleryConfig = ({ isProdBuild, latestBuild }) => {
return createWebpackConfig(
bundle.config.gallery({ isProdBuild, latestBuild })
);
};
const createGalleryConfig = ({ isProdBuild, latestBuild }) =>
createWebpackConfig(bundle.config.gallery({ isProdBuild, latestBuild }));

module.exports = {
createAppConfig,
Expand Down
Loading