Odianosen25 / Monitor-App

Appdaemon App for Andrew's Monitor Presence Detection System
74 stars 9 forks source link

keyword argument should be lowercase #33

Closed akarnani closed 4 years ago

akarnani commented 4 years ago

currently I get an error like:

  File "/usr/lib/python3.8/site-packages/appdaemon/app_management.py", line 145, in initialize_app
    await utils.run_in_executor(self, init)
  File "/usr/lib/python3.8/site-packages/appdaemon/utils.py", line 276, in run_in_executor
    response = future.result()
  File "/usr/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/appdaemon/apps/home_presence_app/home_presence_app.py", line 113, in initialize
    self.adbase.log(
  File "/usr/lib/python3.8/site-packages/appdaemon/adapi.py", line 145, in log
    self._log(logger, msg, *args, **kwargs)
  File "/usr/lib/python3.8/site-packages/appdaemon/adapi.py", line 91, in _log
    logger.log(self._logging.log_levels[level], msg, *args, **kwargs)
  File "/usr/lib/python3.8/logging/__init__.py", line 1500, in log
    self._log(level, msg, args, **kwargs)
TypeError: _log() got an unexpected keyword argument 'Level'

Changing the casing solves the problem

Odianosen25 commented 4 years ago

Many thanks