diff --git a/philipshue/README.md b/philipshue/README.md index d8af6c6b..65fe0da9 100644 --- a/philipshue/README.md +++ b/philipshue/README.md @@ -19,7 +19,7 @@ This plugin allows to interact with the Hue bridge. Each light bulb, sensor and * Hue Color Bulb * Hue Smart plug * Any other Bulb that can be connected and controlled by the Hue App -* In-wall dimmers/switches that can be connected and controlled by the Hue App. +* In-wall dimmers/switches that can be connected and controlled by the Hue App ## Requirements diff --git a/philipshue/integrationpluginphilipshue.cpp b/philipshue/integrationpluginphilipshue.cpp index 2d9c3a6a..c8959131 100644 --- a/philipshue/integrationpluginphilipshue.cpp +++ b/philipshue/integrationpluginphilipshue.cpp @@ -674,7 +674,7 @@ void IntegrationPluginPhilipsHue::thingRemoved(Thing *thing) light->deleteLater(); } - if (thing->thingClassId() == remoteThingClassId || thing->thingClassId() == dimmerSwitch2ThingClassId|| thing->thingClassId() == tapThingClassId || thing->thingClassId() == fohThingClassId || thing->thingClassId() == smartButtonThingClassId|| thing->thingClassId() == wallSwitchThingClassId) { + if (thing->thingClassId() == remoteThingClassId || thing->thingClassId() == dimmerSwitch2ThingClassId|| thing->thingClassId() == tapThingClassId || thing->thingClassId() == fohThingClassId || thing->thingClassId() == smartButtonThingClassId || thing->thingClassId() == wallSwitchThingClassId) { HueRemote *remote = m_remotes.key(thing); m_remotes.remove(remote); remote->deleteLater();