(self, key, value)
| 729 | return dict.__getitem__(self, str(key)) |
| 730 | |
| 731 | def __setitem__(self, key, value): |
| 732 | if not (int(key) > 0 and int(key) <= self._count): |
| 733 | raise Exception('Invalid channel index %s' % key) |
| 734 | if not value: |
| 735 | try: |
| 736 | dict.__delitem__(self, str(key)) |
| 737 | except: |
| 738 | pass |
| 739 | else: |
| 740 | dict.__setitem__(self, str(key), value) |
| 741 | self._send() |
| 742 | |
| 743 | def __delitem__(self, key): |
| 744 | dict.__delitem__(self, str(key)) |
nothing calls this directly
no test coverage detected