Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Storing example responses in docstrings is dumb, but there is no nice way to keep it on while avoiding formatting that makes them incomprehensible like: - """ - Response of Yeelight Dual Control Module - { - 'id': 1, - 'result': [ - {'did': 'switch_1_state', 'siid': 2, 'piid': 1, 'code': 0, 'value': False}, - {'did': 'switch_1_default_state', 'siid': 2, 'piid': 2, 'code': 0, 'value': True}, - {'did': 'switch_1_off_delay', 'siid': 2, 'piid': 3, 'code': 0, 'value': 300}, - {'did': 'switch_2_state', 'siid': 3, 'piid': 1, 'code': 0, 'value': False}, - {'did': 'switch_2_default_state', 'siid': 3, 'piid': 2, 'code': 0, 'value': False}, - {'did': 'switch_2_off_delay', 'siid': 3, 'piid': 3, 'code': 0, 'value': 0}, - {'did': 'interlock', 'siid': 4, 'piid': 1, 'code': 0, 'value': False}, - {'did': 'flex_mode', 'siid': 4, 'piid': 2, 'code': 0, 'value': True}, - {'did': 'rc_list', 'siid': 4, 'piid': 2, 'code': 0, 'value': '[{"mac":"9db0eb4124f8","evtid":4097,"pid":339,"beaconkey":"3691bc0679eef9596bb63abf"}]'}, - ] - } - """ + """Response of Yeelight Dual Control Module { 'id': 1, 'result': [ {'did': + 'switch_1_state', 'siid': 2, 'piid': 1, 'code': 0, 'value': False}, {'did': + 'switch_1_default_state', 'siid': 2, 'piid': 2, 'code': 0, 'value': True}, + {'did': 'switch_1_off_delay', 'siid': 2, 'piid': 3, 'code': 0, 'value': 300}, + {'did': 'switch_2_state', 'siid': 3, 'piid': 1, 'code': 0, 'value': False}, + {'did': 'switch_2_default_state', 'siid': 3, 'piid': 2, 'code': 0, 'value': + False}, {'did': 'switch_2_off_delay', 'siid': 3, 'piid': 3, 'code': 0, 'value': + 0}, {'did': 'interlock', 'siid': 4, 'piid': 1, 'code': 0, 'value': False}, + {'did': 'flex_mode', 'siid': 4, 'piid': 2, 'code': 0, 'value': True}, {'did': + 'rc_list', 'siid': 4, 'piid': 2, 'code': 0, 'value': '[{"mac":"9db0eb4124f8","ev + tid":4097,"pid":339,"beaconkey":"3691bc0679eef9596bb63abf"}]'}, ] }""" Somewhat related to PyCQA/docformatter#144
- Loading branch information