feat(observation): separate physical load and unfiltered EV-SDL model without dispatch
This commit is contained in:
@@ -33,7 +33,7 @@ final class NetzfahrplanV4Messaufnahme
|
||||
|| !is_int($s['variableId'] ?? null) || $s['variableId'] < 1 || isset($ids[$s['variableId']])
|
||||
|| !is_int($s['parentId'] ?? null) || $s['parentId'] < 1
|
||||
|| !is_string($s['ident'] ?? null) || strlen($s['ident']) > 100
|
||||
|| !in_array($s['unit'] ?? null, ['W','kWh','percent'], true)) {
|
||||
|| !in_array($s['unit'] ?? null, ['W','kWh','percent','raw_power','scale'], true)) {
|
||||
throw new InvalidArgumentException('Invalid or duplicate raw source');
|
||||
}
|
||||
$keys[$s['key']] = true; $ids[$s['variableId']] = true;
|
||||
|
||||
Reference in New Issue
Block a user