(self, description, app, subparsers, parent_parser=None)
| 21 | |
| 22 | class SensorBranch(resource.ResourceBranch): |
| 23 | def __init__(self, description, app, subparsers, parent_parser=None): |
| 24 | super(SensorBranch, self).__init__( |
| 25 | Sensor, |
| 26 | description, |
| 27 | app, |
| 28 | subparsers, |
| 29 | parent_parser=parent_parser, |
| 30 | read_only=True, |
| 31 | commands={"list": SensorListCommand, "get": SensorGetCommand}, |
| 32 | ) |
| 33 | |
| 34 | self.commands["enable"] = SensorEnableCommand( |
| 35 | self.resource, self.app, self.subparsers |
| 36 | ) |
| 37 | self.commands["disable"] = SensorDisableCommand( |
| 38 | self.resource, self.app, self.subparsers |
| 39 | ) |
| 40 | |
| 41 | |
| 42 | class SensorListCommand(resource.ContentPackResourceListCommand): |
nothing calls this directly
no test coverage detected