Skip to content

Commit

Permalink
battery_level module: fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
ultrabug committed Sep 10, 2023
1 parent 48825d9 commit ecf5c7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py3status/modules/battery_level.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ def _seconds_to_hms(self, secs):
return f"{int(h):2d}:{int(m):02d}:{int(s):02d}"

def _refresh_battery_info(self, battery_list):
if type(self.battery_id) == int:
if isinstance(self.battery_id, int):
battery = battery_list[self.battery_id]
self.percent_charged = battery["percent_charged"]
self.charging = battery["charging"]
Expand Down

0 comments on commit ecf5c7b

Please sign in to comment.