mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 11:16:35 +00:00
Make deprecation warning instead of error (#16055)
This commit is contained in:
parent
32bbc9421b
commit
28304bb1dc
@ -16,7 +16,9 @@ const handler = {
|
|||||||
console.warn(message);
|
console.warn(message);
|
||||||
document
|
document
|
||||||
.querySelector("home-assistant")
|
.querySelector("home-assistant")
|
||||||
.dispatchEvent(new CustomEvent("write_log", { detail: { message } }));
|
.dispatchEvent(
|
||||||
|
new CustomEvent("write_log", { detail: { message, level: "warning" } })
|
||||||
|
);
|
||||||
return Reflect.get(target, prop, receiver);
|
return Reflect.get(target, prop, receiver);
|
||||||
},
|
},
|
||||||
apply: function (target, thisArg, argumentsList) {
|
apply: function (target, thisArg, argumentsList) {
|
||||||
@ -24,7 +26,9 @@ const handler = {
|
|||||||
console.warn(message);
|
console.warn(message);
|
||||||
document
|
document
|
||||||
.querySelector("home-assistant")
|
.querySelector("home-assistant")
|
||||||
.dispatchEvent(new CustomEvent("write_log", { detail: { message } }));
|
.dispatchEvent(
|
||||||
|
new CustomEvent("write_log", { detail: { message, level: "warning" } })
|
||||||
|
);
|
||||||
return Reflect.apply(target, thisArg, argumentsList);
|
return Reflect.apply(target, thisArg, argumentsList);
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user