Fix popup card in safari. Add IP to FKB sensor. Tweak keepalive function
This commit is contained in:
1 parent
f9701052ba
commit
2528494809
5 files changed
+45
-13
No files matched your search
@@ -42,10 +42,12 @@ export const FullyKioskMixin = (C) => class extends C {
|
||||
battery: window.fully.getBatteryLevel(),
|
||||
charging: window.fully.isPlugged(),
|
||||
motion: this._fullyMotion,
|
||||
ip: window.fully.getIp4Address(),
|
||||
}})
|
||||
}
|
||||
|
||||
fullyMotionTriggered() {
|
||||
if(this._keepingAlive) return;
|
||||
this._fullyMotion = true;
|
||||
clearTimeout(this._motionTimeout);
|
||||
this._motionTimeout = setTimeout(() => {
|
||||
|
||||
+8
-8
@@ -25,15 +25,15 @@ export const BrowserModPopupsMixin = (C) => class extends C {
|
||||
const d = data[ev.detail.entityId];
|
||||
if(!d) return;
|
||||
|
||||
window.queueMicrotask(() => {
|
||||
popUp(
|
||||
d.title,
|
||||
d.card,
|
||||
d.large || false,
|
||||
d.style
|
||||
);
|
||||
window.setTimeout(() => {
|
||||
fireEvent("hass-more-info", {entityID: "."}, document.querySelector("home-assistant"));
|
||||
popUp(
|
||||
d.title,
|
||||
d.card,
|
||||
d.large || false,
|
||||
d.style
|
||||
);
|
||||
});
|
||||
}, 50);
|
||||
}
|
||||
|
||||
do_popup(cfg) {
|
||||
|
||||
Reference in new issue
Block a user