Skip to content

Commit

Permalink
fix(modules/nic): convert parameters to int fixes #1028
Browse files Browse the repository at this point in the history
  • Loading branch information
tobi-wan-kenobi committed Dec 9, 2024
1 parent adb204a commit a882fb9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bumblebee_status/modules/core/nic.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ def __init__(self, config, theme):
self._states["include"].append(state)
self._format = self.parameter("format", "{intf} {state} {ip} {ssid} {strength}")

self._strength_threshold_critical = self.parameter("strength_critical", 30)
self._strength_threshold_warning = self.parameter("strength_warning", 50)
self._strength_threshold_critical = util.format.asint(self.parameter("strength_critical", 30))
self._strength_threshold_warning = util.format.asint(self.parameter("strength_warning", 50))

# Limits for the accepted dBm values of wifi strength
self.__strength_dbm_lower_bound = -110
Expand Down

0 comments on commit a882fb9

Please sign in to comment.