Skip to content

Commit

Permalink
Change default config to do something.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lars Falk-Petersen committed Aug 30, 2021
1 parent 27d468f commit dad00bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ venv/
# Setuptools distribution folder.
/dist/
build/
.pybuild/

# Python egg metadata, regenerated from source files by setuptools.
/*.egg-info
Expand Down
6 changes: 3 additions & 3 deletions bluedo/bluedoapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,15 +411,15 @@ def load_config(self):
self.bt_name = self.config.get(self.config_section, 'bt_name', fallback='(current)')
if "true" in self.config.get(self.config_section, 'debug', fallback='false').lower():
self.debug = True
if "true" in self.config.get(self.config_section, 'here_unlock', fallback='false').lower():
if "true" in self.config.get(self.config_section, 'here_unlock', fallback='true').lower():
self.check_hereunlock.set_active(True)
if "true" in self.config.get(self.config_section, 'check_resume', fallback='false').lower():
self.check_resume.set_active(True)
if "true" in self.config.get(self.config_section, 'check_unmute', fallback='false').lower():
self.check_unmute.set_active(True)
if "true" in self.config.get(self.config_section, 'here_run', fallback='false').lower():
self.check_hererun.set_active(True)
if "true" in self.config.get(self.config_section, 'away_lock', fallback='false').lower():
if "true" in self.config.get(self.config_section, 'away_lock', fallback='true').lower():
self.check_awaylock.set_active(True)
if "true" in self.config.get(self.config_section, 'away_mute', fallback='false').lower():
self.check_awaymute.set_active(True)
Expand Down Expand Up @@ -588,7 +588,7 @@ def bluetooth_ping(self, here_callback, away_callback):

if rssi is None or rssi < self.threshold:
if self.debug:
syslog.syslog("Lost")
syslog.syslog("Lost %s" % lost_pings)

if self.enabled:
lost_pings += 1
Expand Down

0 comments on commit dad00bc

Please sign in to comment.