Closed Xiaojun0822 closed 1 month ago
Attention: Patch coverage is 53.84615%
with 12 lines
in your changes are missing coverage. Please review.
Project coverage is 30.55%. Comparing base (
c8e6235
) to head (7a1261c
).
Files | Patch % | Lines |
---|---|---|
adbutils/shell.py | 42.85% | 12 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
I suggest use property to get brightness instead of function. also brightness can also accept set
Example usage
print(d.brightness)
d.brightness = 80
print(d.brightness_mode) # output BrightnessMode.AUTO | BrightnessMode.MANUAL
d.brightness_mode = BrightnessMode.AUTO
here the BrightnessMode parent class is (int, enum.Enum)
I suggest use property to get brightness instead of function. also brightness can also accept set
Example usage
print(d.brightness) d.brightness = 80
print(d.brightness_mode) # output BrightnessMode.AUTO | BrightnessMode.MANUAL d.brightness_mode = BrightnessMode.AUTO
here the BrightnessMode parent class is (int, enum.Enum)
Modified as required
1、The current brightness value can be obtained through brightness_value 2、You can use brightness_mode to determine whether the current brightness adjustment is automatic or manual