Send a command/query to the subdevice.
(self, command)
| 146 | |
| 147 | @command() |
| 148 | def send(self, command): |
| 149 | """Send a command/query to the subdevice.""" |
| 150 | try: |
| 151 | return self._gw.send(command, [self.sid]) |
| 152 | except Exception as ex: |
| 153 | raise GatewayException( |
| 154 | "Got an exception while sending command %s on model %s" |
| 155 | % (command, self.model) |
| 156 | ) from ex |
| 157 | |
| 158 | @command() |
| 159 | def send_arg(self, command, arguments): |
no test coverage detected