mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-16 01:21:20 -04:00
wuh
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -5,7 +5,7 @@
|
||||
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>webui</title>
|
||||
<script type="module" crossorigin src="/assets/index-ChuD7eTF.js"></script>
|
||||
<script type="module" crossorigin src="/assets/index-Dk7k-sHL.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-CCqAmxiE.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@@ -37,7 +37,10 @@ export function ControlSystemProvider({ children }) {
|
||||
const turnOnAllLights = useCallback(() => {
|
||||
const entities = session?.homeAssistant?.entities || [];
|
||||
const targets = entities.filter(
|
||||
(ent) => ent.type === 'light' && ent.available !== false && ent.state !== 'on',
|
||||
(ent) =>
|
||||
(ent.type === 'light' || ent.type === 'switch') &&
|
||||
ent.available !== false &&
|
||||
ent.state !== 'on',
|
||||
);
|
||||
if (targets.length === 0) {
|
||||
pendingLightsRef.current = false;
|
||||
|
||||
Reference in New Issue
Block a user