Skip to content

Commit

Permalink
Update homekitUtils.class.php
Browse files Browse the repository at this point in the history
  • Loading branch information
NebzHB authored Jan 26, 2024
1 parent 589b386 commit 79df8aa
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions homekitUtils.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,7 @@ public static function transformUnit($label) {
'lux'=>"lux",
'seconds'=>"s"
];
if(array_key_exists($label,$units)) {
return $units[$label];
} else {
return $label;
}
return $units[$label] ?? $label;
}
public static function expandUUID($uuid) {
if(strlen($uuid) > 8) { return strtoupper($uuid); }
Expand Down

0 comments on commit 79df8aa

Please sign in to comment.