mirror of https://github.com/nymea/nymea.git
include the deviceClass/plugin name in all defines to avoid collisions between deviceClasses within the same file. So far this hasn't really been an issue because using idName we could set random ids. Now interfaces dictate the names, so having multiple deviceClasses in one file and both implementing the same interface would clash. This also should improve readability in the plugins code as we won't have ids like: "bridgeConnected" and "connected" available which easily causes the developer to accidentally use "connected" where instead "bridgeConnected" should be used (I actually found some bugs like this while updating plugins for this). The new style would force those states to be named like e.g. "bridgeConnected" and "lightConnected" which are not as easy to mix up. |
||
|---|---|---|
| .. | ||
| translations | ||
| devicepluginmock.cpp | ||
| devicepluginmock.h | ||
| devicepluginmock.json | ||
| httpdaemon.cpp | ||
| httpdaemon.h | ||
| mock.pro | ||