schemas: legacy: extract ExitAirTempSensor schema
This allows to remove some properties from 'Aggregate' schema which are
no longer needed, since there is now a more specific schema to use.
Tested: Schema Validator Pass
Change-Id: Id2f37e994bbea211392cdd20c7f2730a61c13d72
Signed-off-by: Alexander Hansen <alexander.hansen@9elements.com>
diff --git a/schemas/global.json b/schemas/global.json
index 012e2b9..57bbd61 100644
--- a/schemas/global.json
+++ b/schemas/global.json
@@ -40,6 +40,9 @@
"$ref": "legacy.json#/$defs/Aggregate"
},
{
+ "$ref": "legacy.json#/$defs/ExitAirTempSensor"
+ },
+ {
"$ref": "virtual_sensor.json#/$defs/VirtualSensor"
},
{
diff --git a/schemas/legacy.json b/schemas/legacy.json
index 3edf7b8..13cfdfa 100644
--- a/schemas/legacy.json
+++ b/schemas/legacy.json
@@ -1,6 +1,51 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$defs": {
+ "ExitAirTempSensor": {
+ "description": "implemented in dbus-sensors: ExitAirTempSensor",
+ "additionalProperties": false,
+ "properties": {
+ "AlphaF": {
+ "$ref": "#/$defs/Types/AlphaF"
+ },
+ "AlphaS": {
+ "$ref": "#/$defs/Types/AlphaS"
+ },
+ "Name": {
+ "$ref": "#/$defs/Types/Name"
+ },
+ "PowerFactorMax": {
+ "$ref": "#/$defs/Types/PowerFactorMax"
+ },
+ "PowerFactorMin": {
+ "$ref": "#/$defs/Types/PowerFactorMin"
+ },
+ "QMax": {
+ "$ref": "#/$defs/Types/QMax"
+ },
+ "QMin": {
+ "$ref": "#/$defs/Types/QMin"
+ },
+ "Thresholds": {
+ "$ref": "#/$defs/Types/Thresholds"
+ },
+ "Type": {
+ "type": "string",
+ "const": "ExitAirTempSensor"
+ }
+ },
+ "required": [
+ "Name",
+ "Type",
+ "AlphaF",
+ "AlphaS",
+ "PowerFactorMax",
+ "PowerFactorMin",
+ "QMax",
+ "QMin"
+ ],
+ "type": "object"
+ },
"Aggregate": {
"description": "Don't add additional properties to this schema. Consult README.schema for instructions on adding new Exposes element sub-schema.",
"additionalProperties": false,
@@ -11,12 +56,6 @@
"AllowedFailures": {
"$ref": "#/$defs/Types/AllowedFailures"
},
- "AlphaF": {
- "$ref": "#/$defs/Types/AlphaF"
- },
- "AlphaS": {
- "$ref": "#/$defs/Types/AlphaS"
- },
"BindConnector": {
"$ref": "#/$defs/Types/BindConnector"
},
@@ -161,12 +200,6 @@
"Polling": {
"$ref": "#/$defs/Types/Polling"
},
- "PowerFactorMax": {
- "$ref": "#/$defs/Types/PowerFactorMax"
- },
- "PowerFactorMin": {
- "$ref": "#/$defs/Types/PowerFactorMin"
- },
"PowerPort": {
"$ref": "#/$defs/Types/PowerPort"
},
@@ -185,12 +218,6 @@
"Pwm": {
"$ref": "#/$defs/Types/Pwm"
},
- "QMax": {
- "$ref": "#/$defs/Types/QMax"
- },
- "QMin": {
- "$ref": "#/$defs/Types/QMin"
- },
"Rearm": {
"$ref": "#/$defs/Types/Rearm"
},
@@ -2064,7 +2091,6 @@
"GenericSMBusMux",
"cffps",
"ChassisIntrusionSensor",
- "ExitAirTempSensor",
"ExternalSensor",
"FanRedundancy",
"PURedundancy",