Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
bramkragten committed Aug 1, 2024
2 parents fdf829b + 2f696bd commit da75eec
Show file tree
Hide file tree
Showing 12 changed files with 35 additions and 11 deletions.
5 changes: 5 additions & 0 deletions cast/public/sw-legacy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
"use strict";

self.addEventListener("fetch", (event) => {
event.respondWith(fetch(event.request));
});
File renamed without changes.
5 changes: 5 additions & 0 deletions demo/public/sw-legacy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
"use strict";

self.addEventListener("fetch", (event) => {
event.respondWith(fetch(event.request));
});
File renamed without changes.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
"leaflet-draw": "1.0.4",
"lit": "2.8.0",
"luxon": "3.4.4",
"marked": "13.0.2",
"marked": "13.0.3",
"memoize-one": "6.0.0",
"node-vibrant": "3.2.1-alpha.1",
"proxy-polyfill": "0.3.2",
Expand Down
9 changes: 8 additions & 1 deletion src/components/ha-selector/ha-selector-image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,14 @@ export class HaImageSelector extends LitElement {
return html`
<div>
<label>
${this.hass.localize("ui.components.selectors.image.select_image")}
${this.hass.localize(
"ui.components.selectors.image.select_image_with_label",
{
label:
this.label ||
this.hass.localize("ui.components.selectors.image.image"),
}
)}
<ha-formfield
.label=${this.hass.localize("ui.components.selectors.image.upload")}
>
Expand Down
1 change: 1 addition & 0 deletions src/fake_data/provide_hass.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ export const provideHass = (
},
suspendReconnectUntil: noop,
suspend: noop,
ping: noop,
socket: {
readyState: WebSocket.OPEN,
},
Expand Down
5 changes: 5 additions & 0 deletions src/layouts/home-assistant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,11 @@ export class HomeAssistantAppEl extends QuickBarMixin(HassElement) {
}

protected async checkDataBaseMigration() {
if (__DEMO__) {
this._databaseMigration = false;
return;
}

let recorderInfoProm: Promise<RecorderInfo> | undefined;
const preloadWindow = window as WindowWithPreloads;
// On first load, we speed up loading page by having recorderInfoProm ready
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const SCHEMA = [
ui_action: {},
},
},
{ name: "image", selector: { text: {} } },
{ name: "image", selector: { image: {} } },
{ name: "camera_image", selector: { entity: { domain: "camera" } } },
{
name: "camera_view",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ export class HuiPictureElementsCardEditor
),
schema: [
{ name: "title", selector: { text: {} } },
{ name: "image", selector: { text: {} } },
{ name: "dark_mode_image", selector: { text: {} } },
{ name: "image", selector: { image: {} } },
{ name: "dark_mode_image", selector: { image: {} } },
{
name: "camera_image",
selector: { entity: { domain: "camera" } },
Expand Down
3 changes: 2 additions & 1 deletion src/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,8 @@
"unknown_file": "Unknown file"
},
"image": {
"select_image": "Select image",
"image": "image",
"select_image_with_label": "Select {label}",
"upload": "Upload picture",
"url": "Local path or web URL"
},
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9142,7 +9142,7 @@ __metadata:
luxon: "npm:3.4.4"
magic-string: "npm:0.30.10"
map-stream: "npm:0.0.7"
marked: "npm:13.0.2"
marked: "npm:13.0.3"
memoize-one: "npm:6.0.0"
mocha: "npm:10.5.0"
node-vibrant: "npm:3.2.1-alpha.1"
Expand Down Expand Up @@ -10929,12 +10929,12 @@ __metadata:
languageName: node
linkType: hard

"marked@npm:13.0.2":
version: 13.0.2
resolution: "marked@npm:13.0.2"
"marked@npm:13.0.3":
version: 13.0.3
resolution: "marked@npm:13.0.3"
bin:
marked: bin/marked.js
checksum: 10/73696e2d9d77995011f7a75acaa82a8d3b68cbe7072ad06cfdaddef9cb716022f07c3e51f91710db25338dda7736815d0aa9673950bf27c0ed325e6e3549db38
checksum: 10/95daf69e316879a3be112793f203093b2646aeeaa1b7eedc6ea7902bff6af44da045cd35c723711645bc7d92dbe872101e5a36976b48164e1efc1356b12a4a57
languageName: node
linkType: hard

Expand Down

0 comments on commit da75eec

Please sign in to comment.