mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
ONKYO_AVR: let users delete default attributes after first define
git-svn-id: https://svn.fhem.de/fhem/trunk@8120 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
f333ff0920
commit
e1340d22c2
@ -1141,11 +1141,9 @@ sub ONKYO_AVR_Define($$) {
|
|||||||
return "Invalid zone, choose one of main zone2 zone3 zone4 dock";
|
return "Invalid zone, choose one of main zone2 zone3 zone4 dock";
|
||||||
}
|
}
|
||||||
|
|
||||||
# set default attributes
|
# set default settings on first define
|
||||||
unless ( exists( $attr{$name}{webCmd} ) ) {
|
if ($init_done) {
|
||||||
$attr{$name}{webCmd} = 'volume:mute:input';
|
$attr{$name}{webCmd} = 'volume:mute:input';
|
||||||
}
|
|
||||||
unless ( exists( $attr{$name}{devStateIcon} ) ) {
|
|
||||||
$attr{$name}{devStateIcon} =
|
$attr{$name}{devStateIcon} =
|
||||||
'on:rc_GREEN:off off:rc_STOP:on absent:rc_RED';
|
'on:rc_GREEN:off off:rc_STOP:on absent:rc_RED';
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user