Ignore entity-sensor invalid values (#16347)

This commit is contained in:
Tony Murray
2024-09-02 21:44:29 -05:00
committed by GitHub
parent 0cbf37ef86
commit 64c0d6ff7f
4 changed files with 6 additions and 776 deletions

View File

@@ -169,7 +169,7 @@ class Number
if ($value > $maxSignedValue) {
$signedValue = $value - $maxSignedValue * 2 - 2;
// if conversion was successfull, the number will still be in the valid range
// if conversion was successful, the number will still be in the valid range
if ($signedValue > $maxSignedValue) {
throw new \InvalidArgumentException('Unsigned value exceeds the maximum representable value of ' . $integerSize->name);
}