- `self[BATTERY_STATUS] = BATTERY_STATUS[battery_status]` should be: `self[BATTERY_STATUS] = _hidpp20.BATTERY_STATUS[battery_status]`, otherwise the battery status would be a single char from the string `battery-status`. - Make `_hidpp20.BATTERY_OK` check against strings instead of a number. - Move setting battery information to a separate function, `set_battery_info`. This prepares for notifications when a battery error/warning occurs. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| base.py | ||
| common.py | ||
| descriptors.py | ||
| hidpp10.py | ||
| hidpp20.py | ||
| listener.py | ||
| receiver.py | ||
| settings.py | ||
| status.py | ||