Rename smartcamera to smartcam (#1300)

This commit is contained in:
Steven B.
2024-11-23 08:07:47 +00:00
committed by GitHub
parent b525d6a35c
commit 2bda54fcb1
34 changed files with 130 additions and 130 deletions

View File

@@ -1,4 +1,4 @@
"""Module for SmartCamera Protocol."""
"""Module for SmartCamProtocol."""
from __future__ import annotations
@@ -46,8 +46,8 @@ class SingleRequest:
request: dict[str, Any]
class SmartCameraProtocol(SmartProtocol):
"""Class for SmartCamera Protocol."""
class SmartCamProtocol(SmartProtocol):
"""Class for SmartCam Protocol."""
async def _handle_response_lists(
self, response_result: dict[str, Any], method: str, retry_count: int
@@ -123,7 +123,7 @@ class SmartCameraProtocol(SmartProtocol):
"""
method = request
method_type = request[:3]
snake_name = SmartCameraProtocol._make_snake_name(request)
snake_name = SmartCamProtocol._make_snake_name(request)
param = snake_name[4:]
if (
(short_method := method[:3])

View File

@@ -168,7 +168,7 @@ class SmartProtocol(BaseProtocol):
]
end = len(multi_requests)
# The SmartCameraProtocol sends requests with a length 1 as a
# The SmartCamProtocol sends requests with a length 1 as a
# multipleRequest. The SmartProtocol doesn't so will never
# raise_on_error
raise_on_error = end == 1