mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
75_msgConfig.pm: fix “Use of uninitialized value $priorityCat”
git-svn-id: https://svn.fhem.de/fhem/trunk@9900 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
5f626f8cba
commit
ac64d3dc2b
@ -321,9 +321,9 @@ sub msgConfig_Set($@) {
|
|||||||
$attr{$device}{comment} = "Auto-created by $name" if (!defined($attr{$device}{comment}) || $attr{$device}{comment} ne "Auto-created by $name");
|
$attr{$device}{comment} = "Auto-created by $name" if (!defined($attr{$device}{comment}) || $attr{$device}{comment} ne "Auto-created by $name");
|
||||||
$attr{$device}{devStateIcon} = '.*home:status_available@green .*absent:status_away_1@orange .*gone:status_standby .*none:control_building_empty .*gotosleep:status_night@green:asleep .*asleep:status_night@green .*awoken:status_available@green:home .*zu_Hause:user_available:absent .*außer_Haus:user_away:home .*verreist:user_ext_away:home .*bettfertig:scene_toilet:asleep .*schläft:scene_sleeping:awoken .*aufgestanden:scene_sleeping_alternat:home .*:user_unknown';
|
$attr{$device}{devStateIcon} = '.*home:status_available@green .*absent:status_away_1@orange .*gone:status_standby .*none:control_building_empty .*gotosleep:status_night@green:asleep .*asleep:status_night@green .*awoken:status_available@green:home .*zu_Hause:user_available:absent .*außer_Haus:user_away:home .*verreist:user_ext_away:home .*bettfertig:scene_toilet:asleep .*schläft:scene_sleeping:awoken .*aufgestanden:scene_sleeping_alternat:home .*:user_unknown';
|
||||||
|
|
||||||
$return .= "\nIf you would like this device to act as a global presence device for ALL msg commands, please adjust attribute msgResidentsDev at device $name to $device."
|
$return .= "\nIf you would like this device to act as an overall presence device for ALL msg commands, please adjust attribute msgResidentsDev at device $name to $device."
|
||||||
if (defined($attr{$name}{msgResidentsDev}) && $attr{$name}{msgResidentsDev} ne $device);
|
if (defined($attr{$name}{msgResidentsDev}) && $attr{$name}{msgResidentsDev} ne $device);
|
||||||
$return .= "\nNext, set a device's msgResidentsDev attribute to '$device' (think of using 'userattr' to add 'msgResidentsDev' to the list of available attributes). \nIf you would like '$device' to act as a global presence device for ALL msg commands, sett attribute msgResidentsDev at device $name to $device."
|
$return .= "\nNext, set a device's msgResidentsDev attribute to '$device' (think of using 'userattr' to add 'msgResidentsDev' to the list of available attributes). \nIf you would like '$device' to act as an overall presence device for ALL msg commands, sett attribute msgResidentsDev at device $name to $device."
|
||||||
if (!defined($attr{$name}{msgResidentsDev}));
|
if (!defined($attr{$name}{msgResidentsDev}));
|
||||||
|
|
||||||
return $return;
|
return $return;
|
||||||
@ -374,7 +374,7 @@ sub msgConfig_Get($@) {
|
|||||||
|
|
||||||
my $output = 0;
|
my $output = 0;
|
||||||
foreach my $prio (@priorities) {
|
foreach my $prio (@priorities) {
|
||||||
my $priorityCat;
|
my $priorityCat = "";
|
||||||
$priorityCat = $prio if ($prio ne "Normal");
|
$priorityCat = $prio if ($prio ne "Normal");
|
||||||
|
|
||||||
my $cmd =
|
my $cmd =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user