Compare commits

...

3 Commits

Author SHA1 Message Date
Petar Petrov
d39a5cb76d Fix cast 2026-03-27 15:17:28 +02:00
Petar Petrov
e4909a40e0 Fix deprecation 2026-03-27 14:54:38 +02:00
renovate[bot]
6773c74f13 Update dependency typescript to v6 2026-03-27 11:16:37 +00:00
6 changed files with 47 additions and 17 deletions

View File

@@ -1,3 +1,4 @@
/// <reference types="chromecast-caf-sender" />
import { mdiTelevision } from "@mdi/js";
import { css, html, LitElement, nothing } from "lit";
import { customElement, state } from "lit/decorators";

View File

@@ -207,7 +207,7 @@
"tar": "7.5.13",
"terser-webpack-plugin": "5.4.0",
"ts-lit-plugin": "2.0.2",
"typescript": "5.9.3",
"typescript": "6.0.2",
"typescript-eslint": "8.57.2",
"vite-tsconfig-paths": "6.1.1",
"vitest": "4.1.1",

View File

@@ -1,4 +1,5 @@
/* eslint-disable no-console */
/// <reference types="chromecast-caf-sender" />
import type { Auth } from "home-assistant-js-websocket";
import { castApiAvailable } from "./cast_framework";

View File

@@ -813,16 +813,16 @@ const describeLegacyTrigger = (
: trigger.entity_id;
let offsetChoice = "other";
let offset: string | string[] = "";
let offset = "";
if (trigger.offset) {
offsetChoice = trigger.offset.startsWith("-") ? "before" : "after";
offset = trigger.offset.startsWith("-")
const parts = trigger.offset.startsWith("-")
? trigger.offset.substring(1).split(":")
: trigger.offset.split(":");
const duration = {
hours: offset.length > 0 ? +offset[0] : 0,
minutes: offset.length > 1 ? +offset[1] : 0,
seconds: offset.length > 2 ? +offset[2] : 0,
hours: parts.length > 0 ? +parts[0] : 0,
minutes: parts.length > 1 ? +parts[1] : 0,
seconds: parts.length > 2 ? +parts[2] : 0,
};
offset = formatDurationLong(hass.locale, duration);
if (offset === "") {

View File

@@ -7,7 +7,7 @@
"useDefineForClassFields": false,
// Modules
"module": "ESNext",
"moduleResolution": "node",
"moduleResolution": "bundler",
"resolveJsonModule": true,
// Babel handles transpiling and no need for declaration files
"noEmit": true,
@@ -130,7 +130,35 @@
],
"@formatjs/intl-relativetimeformat/polyfill-force": [
"./node_modules/@formatjs/intl-relativetimeformat/polyfill-force.js"
]
],
"@formatjs/intl-durationformat/src/types": [
"./node_modules/@formatjs/intl-durationformat/src/types.js"
],
"@formatjs/intl-pluralrules/locale-data/en": [
"./node_modules/@formatjs/intl-pluralrules/locale-data/en.js"
],
"@home-assistant/webawesome/dist/components/*": [
"./node_modules/@home-assistant/webawesome/dist/components/*"
],
"@home-assistant/webawesome/dist/events/*": [
"./node_modules/@home-assistant/webawesome/dist/events/*"
],
"@home-assistant/webawesome/dist/internal/*": [
"./node_modules/@home-assistant/webawesome/dist/internal/*"
],
"@lit-labs/virtualizer/virtualize": [
"./node_modules/@lit-labs/virtualizer/virtualize.js"
],
"@lit/reactive-element/reactive-controller": [
"./node_modules/@lit/reactive-element/reactive-controller.js"
],
"echarts/types/src/*": ["./node_modules/echarts/types/src/*.d.ts"],
"echarts/lib/*": ["./node_modules/echarts/lib/*"],
"home-assistant-js-websocket/dist/*": [
"./node_modules/home-assistant-js-websocket/dist/*"
],
"lit/directives/join": ["./node_modules/lit/directives/join.js"],
"lit/directives/ref": ["./node_modules/lit/directives/ref.js"]
}
}
}

View File

@@ -9002,7 +9002,7 @@ __metadata:
terser-webpack-plugin: "npm:5.4.0"
tinykeys: "npm:3.0.0"
ts-lit-plugin: "npm:2.0.2"
typescript: "npm:5.9.3"
typescript: "npm:6.0.2"
typescript-eslint: "npm:8.57.2"
vite-tsconfig-paths: "npm:6.1.1"
vitest: "npm:4.1.1"
@@ -13894,13 +13894,13 @@ __metadata:
languageName: node
linkType: hard
"typescript@npm:5.9.3":
version: 5.9.3
resolution: "typescript@npm:5.9.3"
"typescript@npm:6.0.2":
version: 6.0.2
resolution: "typescript@npm:6.0.2"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: 10/c089d9d3da2729fd4ac517f9b0e0485914c4b3c26f80dc0cffcb5de1719a17951e92425d55db59515c1a7ddab65808466debb864d0d56dcf43f27007d0709594
checksum: 10/b9fc2fcee7ee8e5ca6f5138181964550531e18e2d20ecb71b802d4d495881e3444e0ef94cbb6e84eb2ba41e913f6feae3ca33cc722b32e6e6dfadb32d23b80e6
languageName: node
linkType: hard
@@ -13914,13 +13914,13 @@ __metadata:
languageName: node
linkType: hard
"typescript@patch:typescript@npm%3A5.9.3#optional!builtin<compat/typescript>":
version: 5.9.3
resolution: "typescript@patch:typescript@npm%3A5.9.3#optional!builtin<compat/typescript>::version=5.9.3&hash=5786d5"
"typescript@patch:typescript@npm%3A6.0.2#optional!builtin<compat/typescript>":
version: 6.0.2
resolution: "typescript@patch:typescript@npm%3A6.0.2#optional!builtin<compat/typescript>::version=6.0.2&hash=5786d5"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: 10/696e1b017bc2635f4e0c94eb4435357701008e2f272f553d06e35b494b8ddc60aa221145e286c28ace0c89ee32827a28c2040e3a69bdc108b1a5dc8fb40b72e3
checksum: 10/e5501dfcf8c5b6b9a61f6fa53decc40187cebe3a2b7b2bd51c615007ad4cf6d58298461fef63294f6be9d5f2f33019b2a2e2bf02d9cb7d7f6ec94372bf24ffa2
languageName: node
linkType: hard