Skip to content

Commit

Permalink
QA fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
akadlec committed Mar 21, 2022
1 parent cbe7bcf commit 7112093
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions fastybird_metadata/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,7 @@ def get_data_file_content(filename: str) -> Optional[str]:

JSON_SCHEMAS_MAPPING = {
RoutingKey(RoutingKey.CONNECTOR_ACTION).value: "resources/schemas/actions/action.connector.json",
RoutingKey(
RoutingKey.CONNECTOR_PROPERTY_ACTION
).value: "resources/schemas/actions/action.connector.property.json",
RoutingKey(RoutingKey.CONNECTOR_PROPERTY_ACTION).value: "resources/schemas/actions/action.connector.property.json",
RoutingKey(RoutingKey.DEVICE_ACTION).value: "resources/schemas/actions/action.device.json",
RoutingKey(RoutingKey.DEVICE_PROPERTY_ACTION).value: "resources/schemas/actions/action.device.property.json",
RoutingKey(RoutingKey.CHANNEL_ACTION).value: "resources/schemas/actions/action.channel.json",
Expand Down Expand Up @@ -171,15 +169,9 @@ def get_data_file_content(filename: str) -> Optional[str]:
RoutingKey(
RoutingKey.CHANNEL_ENTITY_REPORTED
).value: "resources/schemas/modules/devices-module/entity.channel.json",
RoutingKey(
RoutingKey.CHANNEL_ENTITY_CREATED
).value: "resources/schemas/modules/devices-module/entity.channel.json",
RoutingKey(
RoutingKey.CHANNEL_ENTITY_UPDATED
).value: "resources/schemas/modules/devices-module/entity.channel.json",
RoutingKey(
RoutingKey.CHANNEL_ENTITY_DELETED
).value: "resources/schemas/modules/devices-module/entity.channel.json",
RoutingKey(RoutingKey.CHANNEL_ENTITY_CREATED).value: "resources/schemas/modules/devices-module/entity.channel.json",
RoutingKey(RoutingKey.CHANNEL_ENTITY_UPDATED).value: "resources/schemas/modules/devices-module/entity.channel.json",
RoutingKey(RoutingKey.CHANNEL_ENTITY_DELETED).value: "resources/schemas/modules/devices-module/entity.channel.json",
RoutingKey(
RoutingKey.CHANNEL_PROPERTY_ENTITY_REPORTED
).value: "resources/schemas/modules/devices-module/entity.channel.property.json",
Expand Down

0 comments on commit 7112093

Please sign in to comment.