mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 16:56:54 +00:00
30_HUEBridge.pm: use CommandReload instead of require
git-svn-id: https://svn.fhem.de/fhem/trunk@21132 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
537dc94e40
commit
8db8933f1a
@ -20,7 +20,14 @@ use HttpUtils;
|
||||
|
||||
use IO::Socket::INET;
|
||||
|
||||
require "$attr{global}{modpath}/FHEM/31_HUEDevice.pm";
|
||||
sub
|
||||
HUEBridge_loadHUEDevice()
|
||||
{
|
||||
if( !$modules{HUEDevice}{LOADED} ) {
|
||||
my $ret = CommandReload( undef, "31_HUEDevice" );
|
||||
Log3 undef, 1, $ret if( $ret );
|
||||
}
|
||||
}
|
||||
|
||||
sub HUEBridge_Initialize($)
|
||||
{
|
||||
@ -43,6 +50,8 @@ sub HUEBridge_Initialize($)
|
||||
|
||||
#$hash->{isDiscoverable} = { ssdp => {'hue-bridgeid' => '/.*/'}, upnp => {} };
|
||||
|
||||
HUEBridge_loadHUEDevice();
|
||||
|
||||
return FHEM::Meta::InitMod( __FILE__, $hash );
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user