summaryrefslogtreecommitdiff
path: root/src/home/media/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/home/media/__init__.py')
-rw-r--r--src/home/media/__init__.py22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/home/media/__init__.py b/src/home/media/__init__.py
deleted file mode 100644
index 6923105..0000000
--- a/src/home/media/__init__.py
+++ /dev/null
@@ -1,22 +0,0 @@
-import importlib
-import itertools
-
-__map__ = {
- 'types': ['MediaNodeType'],
- 'record_client': ['SoundRecordClient', 'CameraRecordClient', 'RecordClient'],
- 'node_server': ['MediaNodeServer'],
- 'node_client': ['SoundNodeClient', 'CameraNodeClient', 'MediaNodeClient'],
- 'storage': ['SoundRecordStorage', 'ESP32CameraRecordStorage', 'SoundRecordFile', 'CameraRecordFile', 'RecordFile'],
- 'record': ['SoundRecorder', 'CameraRecorder']
-}
-
-__all__ = list(itertools.chain(*__map__.values()))
-
-
-def __getattr__(name):
- if name in __all__:
- for file, names in __map__.items():
- if name in names:
- module = importlib.import_module(f'.{file}', __name__)
- return getattr(module, name)
- raise AttributeError(f"module {__name__!r} has no attribute {name!r}")