Skip to content

Commit

Permalink
fix switching night mode
Browse files Browse the repository at this point in the history
  • Loading branch information
JanJaapKo committed May 15, 2020
1 parent c87e6b6 commit 95c38c1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dyson_pure_link_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ def password(self):
return self._password

def __repr__(self):
return 'Dyson device from plugin with serial {0} of type {1}'.format(self.serial, self.product_type)
return 'Dyson device from plugin with serial {0} of type {1}'.format(self.serial, self.product_type)
6 changes: 4 additions & 2 deletions plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Author: Jan-Jaap Kostelijk
#
"""
<plugin key="DysonPureLink" name="Dyson Pure Link" author="Jan-Jaap Kostelijk" version="2.1.2" wikilink="https://github.com/JanJaapKo/DysonPureLink.wiki.git" externallink="https://github.com/JanJaapKo/DysonPureLink">
<plugin key="DysonPureLink" name="Dyson Pure Link" author="Jan-Jaap Kostelijk" version="2.1.3" wikilink="https://github.com/JanJaapKo/DysonPureLink.wiki.git" externallink="https://github.com/JanJaapKo/DysonPureLink">
<description>
<h2>Dyson Pure Link plugin</h2><br/>
Connects to Dyson Pure Link devices<br/>
Expand Down Expand Up @@ -254,7 +254,9 @@ def onCommand(self, Unit, Command, Level, Hue):
topic, payload = self.myDevice.set_fan_mode_auto(str(Command).upper())
if Unit == self.standbyMonitoringUnit:
topic, payload = self.myDevice.set_standby_monitoring(str(Command).upper())

if Unit == self.nightModeUnit:
topic, payload = self.myDevice.set_night_mode(str(Command).upper())

self.mqttClient.Publish(topic, payload)

def onConnect(self, Connection, Status, Description):
Expand Down

0 comments on commit 95c38c1

Please sign in to comment.