export object variable

This commit is contained in:
2022-01-02 07:13:04 +01:00
parent 35a4f60a53
commit 842e41e3dc
4 changed files with 12 additions and 8 deletions

View File

@ -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;

View File

@ -88,6 +88,8 @@ our %EXPORT_TAGS = (
],
);
use FHEM::Automation::ShuttersControl '$shutters $ascDev';
use GPUtils qw(GP_Import);
## Import der FHEM Funktionen
BEGIN {

View File

@ -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