Fix error when there is an untranslated sensor type (#15176)

Will still cause a visual issue, but at least that should indicate a translation is needed.
This commit is contained in:
Tony Murray 2023-08-01 05:22:09 -05:00 committed by GitHub
parent f72656249f
commit 7265631857
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -75,7 +75,7 @@ foreach ($sensors as $sensor_name) {
//strtolower because 'dBm - dbm' difference
$lowname = strtolower($sensor_name);
$datas[] = $lowname;
$type_text[$lowname] = trans('sensors.' . $lowname)['short'];
$type_text[$lowname] = trans('sensors.' . $lowname . '.short');
}
}