source code: py/device/boards/README.md
Device API: Boards ImplementationΒΆ
This folder contains implementations for different boards.
To add your own class, inherit from one board and override your Device
properties:
from cros.factory.device import device_types
from cros.factory.device import power
class MyPower(power.Power):
def CheckACPresent(self):
return False
class MyBoard(device_types.DeviceBoard):
@device_types.DeviceProperty
def power(self):
return MyPower(self)