2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 04:36:36 +00:00

HMCCU: Optimized reading update performance

git-svn-id: https://svn.fhem.de/fhem/trunk@13900 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
zap 2017-04-04 19:59:21 +00:00
parent eedc05ffab
commit 585a15ae1a
2 changed files with 6 additions and 5 deletions

View File

@ -1,5 +1,6 @@
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
# Do not insert empty lines here, update check depends on it.
- update: 88_HMCCU: Optimized reading update performance
- feature: 00_SONOS: New lists for groupinformations
- bugfix: 88_HMCCU: Fixed toggle function for HMCCUCHN devices
- change: 93_DbLog: new version 2.14.4, new set-commands exportCache,

View File

@ -4,7 +4,7 @@
#
# $Id$
#
# Version 3.9.012
# Version 3.9.013
#
# Module for communication between FHEM and Homematic CCU2.
# Supports BidCos-RF, BidCos-Wired, HmIP-RF, virtual CCU channels,
@ -101,7 +101,7 @@ my %HMCCU_CUST_CHN_DEFAULTS;
my %HMCCU_CUST_DEV_DEFAULTS;
# HMCCU version
my $HMCCU_VERSION = '3.9.012';
my $HMCCU_VERSION = '3.9.013';
# RPC Ports and URL extensions
my %HMCCU_RPC_NUMPORT = (
@ -2203,9 +2203,9 @@ sub HMCCU_UpdateSingleDevice ($$$)
# Check for updated data
my ($devaddr, $cnum) = HMCCU_SplitChnAddr ($clthash->{ccuaddr});
# return 0 if (!exists ($objects->{$devaddr}));
# return 0 if ($clttype eq 'HMCUCCHN' && !exists ($objects->{$devaddr}{$cnum}) &&
# !exists ($objects->{$devaddr}{0}));
return 0 if (!exists ($objects->{$devaddr}));
return 0 if ($clttype eq 'HMCUCCHN' && !exists ($objects->{$devaddr}{$cnum}) &&
!exists ($objects->{$devaddr}{0}));
# Get attributes of IO device
my $ccuflags = AttrVal ($ccuname, 'ccuflags', 'null');