added callable function in event object

This commit is contained in:
DTux committed 2022-03-15 22:49:13 +01:00
1 parent c8772aeda0
commit 80234fc505
4 files changed
+14 -6

No files matched your search

+1
View File
@@ -73,6 +73,7 @@ function zigbee2mqttCallback($topic, $message)
logger(DEBUG, _("friendlyname = ") . $fn, __FILE__ . ":" . __LINE__);
if (!array_key_exists($fn, $indexFriendlyNames[$topicName]))
{
mkDevicesDB($topicName, $message->payload);
logger(ERROR, sprintf(_("device with friendlyname %s not found"), $fn), __FILE__ . ":" . __LINE__);
}else
{