Skip to content

Commit 5a4ba02

Browse files
committed
UPDATE add unkown device
1 parent 2d92b74 commit 5a4ba02

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/Models/Gateway.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,14 @@ public function handleMessage($response)
9292
$subDevice = new Cube(['sid' => $response->sid]);
9393
break;
9494
default:
95-
return false;
95+
$subDevice = new Class(['sid' => $response->sid]) extends Subdevice
96+
{
97+
public function __construct(array $attributes = [])
98+
{
99+
$this->type = 'unknown';
100+
parent::__construct($attributes);
101+
}
102+
};
96103
}
97104

98105
if (isset($subDevice)) {

0 commit comments

Comments
 (0)