diff --git a/FHEM/59_LuftdatenInfo.pm b/FHEM/59_LuftdatenInfo.pm index 9e4c0ec9f..63858da63 100644 --- a/FHEM/59_LuftdatenInfo.pm +++ b/FHEM/59_LuftdatenInfo.pm @@ -268,7 +268,10 @@ sub LuftdatenInfo_ParseHttpResponse($) { my $address = $data->{address}; readingsSingleUpdate( - $hash, "location", "$address->{postcode} $address->{city}", 1 + $hash, "location" + , "$address->{postcode} " + . ($address->{city} ? $address->{city} : $address->{town}) + , 1 ); } elsif($connection eq "remote"){