fix roken refactor

master
Dirk Heilig 2024-10-28 21:56:07 +01:00
parent 5284f5a948
commit fed0c7124a
1 changed files with 2 additions and 2 deletions

View File

@ -42,10 +42,10 @@ $c->subscribe(DOOR_TOPIC, 2);
$c->onMessage(function (Message $message) {
switch ($message->topic) {
case getenv("ENERGY_COUNTER_TOPIC"):
case ENERGY_METER_TOPIC:
energy($message->payload);
break;
case getenv("DOOR_TOPIC"):
case DOOR_TOPIC:
door($message->payload);
break;
}