code style
This commit is contained in:
@ -695,7 +695,16 @@ sub WriteReadingsShuttersList($) {
|
|||||||
);
|
);
|
||||||
|
|
||||||
### associatedWith damit man sieht das der Rollladen mit einem ASC Device verbunden ist
|
### 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);
|
readingsSingleUpdate(
|
||||||
|
$defs{$_},
|
||||||
|
'associatedWith',
|
||||||
|
(
|
||||||
|
ReadingsVal( $_, 'associatedWith', $name ) eq $name
|
||||||
|
? $name
|
||||||
|
: ReadingsVal( $_, 'associatedWith', 'none' ) . ',' . $name
|
||||||
|
),
|
||||||
|
0
|
||||||
|
);
|
||||||
}
|
}
|
||||||
readingsBulkUpdate( $hash, 'state', 'active' );
|
readingsBulkUpdate( $hash, 'state', 'active' );
|
||||||
readingsEndUpdate( $hash, 0 );
|
readingsEndUpdate( $hash, 0 );
|
||||||
|
Reference in New Issue
Block a user