mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +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";
|
||||
}
|
||||
|
||||
# set default attributes
|
||||
unless ( exists( $attr{$name}{webCmd} ) ) {
|
||||
# set default settings on first define
|
||||
if ($init_done) {
|
||||
$attr{$name}{webCmd} = 'volume:mute:input';
|
||||
}
|
||||
unless ( exists( $attr{$name}{devStateIcon} ) ) {
|
||||
$attr{$name}{devStateIcon} =
|
||||
'on:rc_GREEN:off off:rc_STOP:on absent:rc_RED';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user