|
|
|
@ -52,6 +52,7 @@ class AmcrestServiceProtocol(Protocol):
|
|
|
|
async def device_loop(self) -> None: ...
|
|
|
|
async def device_loop(self) -> None: ...
|
|
|
|
async def get_events_from_device(self, device_id: str) -> None: ...
|
|
|
|
async def get_events_from_device(self, device_id: str) -> None: ...
|
|
|
|
async def get_snapshot_from_device(self, device_id: str) -> str | None: ...
|
|
|
|
async def get_snapshot_from_device(self, device_id: str) -> str | None: ...
|
|
|
|
|
|
|
|
async def heartbeat(self) -> None: ...
|
|
|
|
async def main_loop(self) -> None: ...
|
|
|
|
async def main_loop(self) -> None: ...
|
|
|
|
async def process_device_event(self, device_id: str, code: str, payload: Any) -> None: ...
|
|
|
|
async def process_device_event(self, device_id: str, code: str, payload: Any) -> None: ...
|
|
|
|
async def refresh_all_devices(self) -> None: ...
|
|
|
|
async def refresh_all_devices(self) -> None: ...
|
|
|
|
@ -92,10 +93,12 @@ class AmcrestServiceProtocol(Protocol):
|
|
|
|
def get_storage_stats(self, device_id: str) -> dict[str, str | float]: ...
|
|
|
|
def get_storage_stats(self, device_id: str) -> dict[str, str | float]: ...
|
|
|
|
def handle_device_command(self, device_id: str, handler: str, message: str) -> None: ...
|
|
|
|
def handle_device_command(self, device_id: str, handler: str, message: str) -> None: ...
|
|
|
|
def handle_service_command(self, handler: str, message: str) -> None: ...
|
|
|
|
def handle_service_command(self, handler: str, message: str) -> None: ...
|
|
|
|
|
|
|
|
def heartbeat_ready(self) -> None: ...
|
|
|
|
def is_discovered(self, device_id: str) -> bool: ...
|
|
|
|
def is_discovered(self, device_id: str) -> bool: ...
|
|
|
|
def is_ipv4(self, string: str) -> bool: ...
|
|
|
|
def is_ipv4(self, string: str) -> bool: ...
|
|
|
|
def is_rate_limited(self) -> bool: ...
|
|
|
|
def is_rate_limited(self) -> bool: ...
|
|
|
|
def load_config(self, config_arg: Any | None) -> dict[str, Any]: ...
|
|
|
|
def load_config(self, config_arg: Any | None) -> dict[str, Any]: ...
|
|
|
|
|
|
|
|
def mark_ready(self) -> None: ...
|
|
|
|
def mb_to_b(self, total: int) -> int: ...
|
|
|
|
def mb_to_b(self, total: int) -> int: ...
|
|
|
|
def mqtt_on_connect(
|
|
|
|
def mqtt_on_connect(
|
|
|
|
self, client: Client, userdata: dict[str, Any], flags: ConnectFlags, reason_code: ReasonCode, properties: Properties | None
|
|
|
|
self, client: Client, userdata: dict[str, Any], flags: ConnectFlags, reason_code: ReasonCode, properties: Properties | None
|
|
|
|
|