diff options
| author | Scott Gasch <[email protected]> | 2022-02-10 14:10:48 -0800 |
|---|---|---|
| committer | Scott Gasch <[email protected]> | 2022-02-10 14:10:48 -0800 |
| commit | f2600f30801c849fc1d139386e3ddc3c9eb43e30 (patch) | |
| tree | 74c5173bf47322bcfbbd2985adfb54741cf3c4cc /smart_home/cameras.py | |
| parent | 415c2c91972ea5a574dce166ec609926dcf19d73 (diff) | |
More cleanup.
Diffstat (limited to 'smart_home/cameras.py')
| -rw-r--r-- | smart_home/cameras.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/smart_home/cameras.py b/smart_home/cameras.py index 712d73f..f77ddc6 100644 --- a/smart_home/cameras.py +++ b/smart_home/cameras.py @@ -10,6 +10,8 @@ logger = logging.getLogger(__name__) class BaseCamera(dev.Device): + """A base class for a webcam device.""" + camera_mapping = { 'cabin_drivewaycam': 'cabin_driveway', 'outside_backyard_camera': 'backyard', @@ -30,4 +32,6 @@ class BaseCamera(dev.Device): if name == 'driveway': return 'http://10.0.0.226:8080/Umtxxf1uKMBniFblqeQ9KRbb6DDzN4/mjpeg/GKlT2FfiSQ/driveway' else: - return f'http://10.0.0.226:8080/Umtxxf1uKMBniFblqeQ9KRbb6DDzN4/mp4/GKlT2FfiSQ/{name}/s.mp4' + return ( + f'http://10.0.0.226:8080/Umtxxf1uKMBniFblqeQ9KRbb6DDzN4/mp4/GKlT2FfiSQ/{name}/s.mp4' + ) |
