Skip to content

Commit

Permalink
onewire: Changed some Log levels from info to dbghigh
Browse files Browse the repository at this point in the history
  • Loading branch information
msinn committed Aug 31, 2024
1 parent bb11798 commit 9de1fe7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions onewire/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class OneWire(SmartPlugin):
the update functions for the items
"""

PLUGIN_VERSION = '1.9.4'
PLUGIN_VERSION = '1.9.5'

_flip = {0: '1', False: '1', 1: '0', True: '0', '0': True, '1': False}

Expand Down Expand Up @@ -448,7 +448,7 @@ def _sensor_cycle(self):
def _discovery_process_bus(self, path):

bus = path.split("/")[-2]
self.logger.info(f"- Processing of data for bus {bus} started")
self.logger.dbghigh(f"Discovery: Processing of data for bus {bus} started")
if bus not in self._buses:
self._buses[bus] = []
self._webif_buses[bus] = {}
Expand All @@ -461,7 +461,7 @@ def _discovery_process_bus(self, path):
self.logger.info(f"_discovery_process_bus: Problem reading {bus}, error: {e}")
return

self.logger.info(f"- On bus {bus} found sensors: {sensors}")
self.logger.info(f"Discovery: On bus {bus} {len(sensors)} sensors found: {sensors}")

for sensor in sensors:
# skip subdirectories alarm, interface and simultaneous
Expand Down Expand Up @@ -547,7 +547,7 @@ def _discovery_process_bus(self, path):
else:
self.logger.debug(f"_discovery_process_bus: Sensor {sensor} was already found in bus {bus}")

self.logger.info(f"- Processing of data for bus {bus} finished")
self.logger.dbghigh(f"Discovery: Processing of data for bus {bus} finished")
return

def _discovery(self):
Expand All @@ -558,14 +558,14 @@ def _discovery(self):
If the next call takes places it will be checked if there is something changed in top level directory.
The rest of the discovery will be skipped if now changes are found.
"""
self.logger.info("discovery started")
self.logger.dbghigh("Discovery started")
self._intruders = [] # reset intrusion detection
try:
listing = self.owbase.dir('/')
except Exception as e:
self.logger.error(f"_discovery: listing '/' failed with error '{e}'")
return
self.logger.info(f"_discovery: got listing for '/' = '{listing}' self.alive: {self.alive}")
self.logger.dbghigh(f"Discovery: Got listing for '/' = '{listing}' self.alive: {self.alive}")
if type(listing) != list:
self.logger.warning(f"_discovery: listing '{listing}' is not a list.")
return
Expand All @@ -588,7 +588,7 @@ def _discovery(self):

else: # for did not end prematurely with break or something else
self._discovered = True
self.logger.info("discovery finished")
self.logger.dbghigh("Discovery finished")

# get a list of all directory entries from owserver
# self.devices = self.tree()
Expand Down
2 changes: 1 addition & 1 deletion onewire/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ plugin:
keywords: 1wire onewire dallas ibutton sensor temperature humidity
documentation: ''
support: https://knx-user-forum.de/forum/supportforen/smarthome-py/1493319-support-thread-zum-onewire-plugin
version: 1.9.4 # Plugin version
version: 1.9.5 # Plugin version
sh_minversion: '1.9.3.5' # minimum shNG version to use this plugin
multi_instance: True
restartable: True
Expand Down

0 comments on commit 9de1fe7

Please sign in to comment.