mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
parent
44d91eaa4f
commit
f31a7c3af0
@ -46,7 +46,7 @@ export const handleAction = async (
|
|||||||
actionConfig.confirmation &&
|
actionConfig.confirmation &&
|
||||||
(!actionConfig.confirmation.exemptions ||
|
(!actionConfig.confirmation.exemptions ||
|
||||||
!actionConfig.confirmation.exemptions.some(
|
!actionConfig.confirmation.exemptions.some(
|
||||||
(e) => e.user === hass!.user!.id
|
(e) => e.user === hass!.user?.id
|
||||||
))
|
))
|
||||||
) {
|
) {
|
||||||
forwardHaptic("warning");
|
forwardHaptic("warning");
|
||||||
|
@ -266,7 +266,7 @@ class HUIRoot extends LitElement {
|
|||||||
((Array.isArray(view.visible) &&
|
((Array.isArray(view.visible) &&
|
||||||
!view.visible.some(
|
!view.visible.some(
|
||||||
(e) =>
|
(e) =>
|
||||||
e.user === this.hass!.user!.id
|
e.user === this.hass!.user?.id
|
||||||
)) ||
|
)) ||
|
||||||
view.visible === false))
|
view.visible === false))
|
||||||
),
|
),
|
||||||
@ -470,7 +470,7 @@ class HUIRoot extends LitElement {
|
|||||||
view.visible !== undefined &&
|
view.visible !== undefined &&
|
||||||
((Array.isArray(view.visible) &&
|
((Array.isArray(view.visible) &&
|
||||||
!view.visible.some(
|
!view.visible.some(
|
||||||
(e) => e.user === this.hass!.user!.id
|
(e) => e.user === this.hass!.user?.id
|
||||||
)) ||
|
)) ||
|
||||||
view.visible === false)
|
view.visible === false)
|
||||||
),
|
),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user