Converting flags to a dict. Using test_async_client wherever tests required it.

This commit is contained in:
Roland 2024-05-08 17:31:15 -06:00
parent 63381c1d77
commit cd00df5c13
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
9 changed files with 51 additions and 53 deletions

View file

@ -827,7 +827,7 @@ export const StatusProvider = (props) => {
export const useStatusFlag = (flag) => {
const {status} = useContext(StatusContext);
return status && status['flags'] && status['flags'].indexOf(flag) >= 0;
return status && status['flags'] && status['flags'][flag];
}
export const useCPUTemperature = () => {