Source code for testbot.resource.tcl_tv_device

#!/usr/bin/env python
# -*- coding: utf-8 -*-


[docs]__author__ = "Nuanguang Gu(Sunny)"
[docs]__email__ = "nuanguang.gu@aliyun.com"
from testbot.resource.device import TVDevice
[docs]class TCLTVDevice(TVDevice): """ TCL电视设备类 """ # 接口模块类列表
[docs] MODULES = [ "testbot.resource.modules.tv_device_module.PowerModule", "testbot.resource.modules.tv_device_module.AudioModule", "testbot.resource.modules.tv_device_module.CaptureCardModule", "testbot.resource.modules.tv_device_module.CommSerialModule", "testbot.resource.modules.tv_device_module.InfraredSerialModule", "testbot.resource.modules.tv_device_module.ADBModule" ]
def __init__(self, name: str = "", *args: tuple, **kwargs: dict): super().__init__(name=name, *args, **kwargs)
[docs] def to_dict(self) -> dict: return dict()
if __name__ == "__main__":
[docs] device = TCLTVDevice(name="TV1")
device.logger.info("This is TCL TV Device")