This commit is contained in:
Michael Zanetti 2021-05-02 11:24:33 +02:00
parent 83fc7448ea
commit 756b7a4fe9

View File

@ -46,7 +46,7 @@ def setupThing(info):
info.finish(nymea.ThingErrorHardwareNotAvailable, "Unable to connect to the Philips Air Purifier. Please check if IP and Protocol are set correctly and the purifier is turned on.") info.finish(nymea.ThingErrorHardwareNotAvailable, "Unable to connect to the Philips Air Purifier. Please check if IP and Protocol are set correctly and the purifier is turned on.")
return return
status = self._client.get_status(debug) status = purifier.get_status(debug)
if status is None: if status is None:
logger.warn("Error reading status from Philips air purifier") logger.warn("Error reading status from Philips air purifier")
info.finish(nymea.ThingErrorHardwareNotAvailable, "Unable to read status from the Philips Air Purifier.") info.finish(nymea.ThingErrorHardwareNotAvailable, "Unable to read status from the Philips Air Purifier.")