code style
This commit is contained in:
parent
2480f3a870
commit
f98af44b98
@ -694,8 +694,17 @@ sub WriteReadingsShuttersList($) {
|
||||
) eq 'none'
|
||||
);
|
||||
|
||||
### associatedWith damit man sieht das der Rollladen mit einem ASC Device verbunden ist
|
||||
readingsSingleUpdate($defs{$_},'associatedWith',(ReadingsVal($_,'associatedWith',$name) eq $name ? $name : ReadingsVal($_,'associatedWith','none') . ',' . $name), 0);
|
||||
### associatedWith damit man sieht das der Rollladen mit einem ASC Device verbunden ist
|
||||
readingsSingleUpdate(
|
||||
$defs{$_},
|
||||
'associatedWith',
|
||||
(
|
||||
ReadingsVal( $_, 'associatedWith', $name ) eq $name
|
||||
? $name
|
||||
: ReadingsVal( $_, 'associatedWith', 'none' ) . ',' . $name
|
||||
),
|
||||
0
|
||||
);
|
||||
}
|
||||
readingsBulkUpdate( $hash, 'state', 'active' );
|
||||
readingsEndUpdate( $hash, 0 );
|
||||
|
Loading…
Reference in New Issue
Block a user