From 01923ace2304dcbbe3892131ea0ea4db1fc0cf44 Mon Sep 17 00:00:00 2001 From: Clint Purser Date: Tue, 15 Oct 2024 13:22:17 -0400 Subject: [PATCH] remove tests & google dependency --- src/main.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main.py b/src/main.py index 4ffe6b8..9df6ae3 100644 --- a/src/main.py +++ b/src/main.py @@ -1,7 +1,6 @@ import asyncio from typing import Any, ClassVar, Dict, Final, List, Mapping, Optional, Sequence -from google.protobuf.struct_pb2 import Struct from typing_extensions import Self from viam.components.sensor import * from viam.module.module import Module @@ -23,9 +22,9 @@ def validate_config(cls, config: ComponentConfig) -> Sequence[str]: if len(config.attributes.fields.get("mock_data", [])) > 0: raise Exception("A mock_data must be defined") - for reading in config.attributes.fields.get("mock_data", []): - if not isinstance(reading, Struct): - raise Exception("mock_data must only be populated with maps of data") + # for reading in config.attributes.fields.get("mock_data", []): + # if not isinstance(reading, Struct): + # raise Exception("mock_data must only be populated with maps of data") return [] def reconfigure(self, config: ComponentConfig, dependencies: Mapping[ResourceName, ResourceBase]):