feat(timeseries): unify element history queries
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
from typing import Literal
|
||||
|
||||
|
||||
Metric = Literal["flow", "pressure", "velocity"]
|
||||
|
||||
DISPLAY_UNITS: dict[Metric, str] = {
|
||||
"flow": "m³/h",
|
||||
"pressure": "m",
|
||||
"velocity": "m/s",
|
||||
}
|
||||
|
||||
def display_unit_for_metric(metric: Metric) -> str:
|
||||
return DISPLAY_UNITS[metric]
|
||||
Reference in New Issue
Block a user