export object variable
This commit is contained in:
@ -139,6 +139,12 @@ eval {
|
||||
## Import der FHEM Funktionen
|
||||
#-- Run before package compilation
|
||||
BEGIN {
|
||||
## 2 Objekte werden erstellt
|
||||
our $shutters = FHEM::Automation::ShuttersControl::Shutters->new();
|
||||
our $ascDev = FHEM::Automation::ShuttersControl::Dev->new();
|
||||
|
||||
use Exporter qw(import);
|
||||
our @EXPORT_OK = qw / $shutters $ascDev /;
|
||||
|
||||
# Import from main context
|
||||
GP_Import(
|
||||
@ -269,10 +275,6 @@ my %posSetCmds = (
|
||||
EnOcean => 'position',
|
||||
);
|
||||
|
||||
## 2 Objekte werden erstellt
|
||||
our $shutters = FHEM::Automation::ShuttersControl::Shutters->new();
|
||||
our $ascDev = FHEM::Automation::ShuttersControl::Dev->new();
|
||||
|
||||
sub ascAPIget {
|
||||
my $getCommand = shift;
|
||||
my $shutterDev = shift;
|
||||
|
@ -88,6 +88,8 @@ our %EXPORT_TAGS = (
|
||||
],
|
||||
);
|
||||
|
||||
use FHEM::Automation::ShuttersControl '$shutters $ascDev';
|
||||
|
||||
use GPUtils qw(GP_Import);
|
||||
## Import der FHEM Funktionen
|
||||
BEGIN {
|
||||
|
@ -51,7 +51,7 @@ use utf8;
|
||||
|
||||
use FHEM::Automation::ShuttersControl::Shutters::Readings;
|
||||
use FHEM::Automation::ShuttersControl::Shutters::Attr;
|
||||
use FHEM::Automation::ShuttersControl::Roommate;
|
||||
use FHEM::Automation::ShuttersControl::Roommate qw (:ALL);
|
||||
use FHEM::Automation::ShuttersControl::Window;
|
||||
|
||||
use base
|
||||
|
Reference in New Issue
Block a user