Skip to content

Commit

Permalink
cleanup commented lines and loglines
Browse files Browse the repository at this point in the history
  • Loading branch information
JanJaapKo committed May 5, 2020
1 parent a2e071b commit d4c36a5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
5 changes: 1 addition & 4 deletions dyson.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,11 @@ def login(self):
if login.status_code == requests.codes.ok:
json_response = login.json()
Domoticz.Debug("Login OK, JSON response: '"+str(json_response)+"'")
#pwdMngr = urllib.request.HTTPPasswordMgrWithDefaultRealm()
#pwdMngr.add_password(None, uri, json_response["Account"], json_response["Password"])
self._auth = (json_response["Account"], json_response["Password"])
self._logged = True
else:
self._logged = False
#Domoticz.Debug("Login NOK, response: '"+str(login.status_code)+"'")
Domoticz.Error("Login to Dyson account Not OK: '" +str(login.status_code)+", " +str(login.reason)+"'")
Domoticz.Error("Login to Dyson account failed: '" +str(login.status_code)+", " +str(login.reason)+"'")
return self._logged

def devices(self):
Expand Down
1 change: 0 additions & 1 deletion dyson_pure_link_device.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""Dyson Pure Link Device Logic"""

import Domoticz
import commands

from value_types import CONNECTION_STATE, DISCONNECTION_STATE, FanMode, StandbyMonitoring, ConnectionError, DisconnectionError, SensorsData, StateData
Expand Down
5 changes: 2 additions & 3 deletions plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def onStop(self):
Domoticz.Debug("onStop called")

def onCommand(self, Unit, Command, Level, Hue):
Domoticz.Log("DysonPureLink plugin: onCommand called for Unit " + str(Unit) + ": Parameter '" + str(Command) + "', Level: " + str(Level))
Domoticz.Debug("DysonPureLink plugin: onCommand called for Unit " + str(Unit) + ": Parameter '" + str(Command) + "', Level: " + str(Level))
topic = ''
payload = ''

Expand Down Expand Up @@ -255,8 +255,7 @@ def onCommand(self, Unit, Command, Level, Hue):
self.mqttClient.Publish(topic, payload)

def onConnect(self, Connection, Status, Description):
Domoticz.Debug("onConnect called")
Domoticz.Debug("onConnect returns 1: Connection '"+str(Connection)+"', Status: '"+str(Status)+"', Description: '"+Description+"'")
Domoticz.Debug("onConnect called: Connection '"+str(Connection)+"', Status: '"+str(Status)+"', Description: '"+Description+"'")
self.mqttClient.onConnect(Connection, Status, Description)

def onDisconnect(self, Connection):
Expand Down

0 comments on commit d4c36a5

Please sign in to comment.