(r)
| 2208 | function _wifiZbCheck() { |
| 2209 | fetch('/api/net/zigbee/status').then(r => r.json()).then(st => { |
| 2210 | const ok = !!(st && st.available); |
| 2211 | _wifiState.zbAvailable = ok; |
| 2212 | const chk = document.getElementById('wifi-zb'), lab = document.getElementById('wifi-zb-label'); |
| 2213 | if (chk) chk.disabled = !ok; |
| 2214 | if (lab) { |
| 2215 | lab.classList.toggle('opacity-40', !ok); |
| 2216 | lab.classList.toggle('cursor-not-allowed', !ok); |
| 2217 | lab.classList.toggle('cursor-pointer', ok); |
| 2218 | lab.classList.toggle('text-gray-400', ok); |
nothing calls this directly
no test coverage detected