Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, # pylint: disable=too-many-arguments
address=fritzconnection.fritzconnection.FRITZ_IP_ADDRESS,
port=fritzconnection.fritzconnection.FRITZ_TCP_PORT,
user=fritzconnection.fritzconnection.FRITZ_USERNAME,
password='',
hostname='',
plugin_instance='',
verbose=''):
self._fritz_address = address
self._fritz_port = port
self._fritz_user = user
self._fritz_password = password
self._fritz_hostname = hostname
self._plugin_instance = plugin_instance
self._verbose = verbose.lower() in ['true', 'yes']
if self._verbose:
collectd.info("fritzcollectd: Verbose logging enabled")
self._fc = None