2
0
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:
jpawlowski 2015-03-01 13:20:28 +00:00
parent f333ff0920
commit e1340d22c2

View File

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