mirror of
https://github.com/nymea/nymea-plugins.git
synced 2026-10-21 14:23:24 +02:00
fix
This commit is contained in:
parent
83fc7448ea
commit
756b7a4fe9
@ -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.")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user