mirror of
https://github.com/danieldemus/openhab-addons
synced 2026-07-29 12:34:21 +02:00
[ecobee] fix NullPointerException in EcobeeAccountBridgeHandler.refreshThermostats() (#16442)
Signed-off-by: Rob Nielsen <rob.nielsen@yahoo.com>
This commit is contained in:
+7
-4
@@ -220,10 +220,13 @@ public class EcobeeAccountBridgeHandler extends BaseBridgeHandler {
|
||||
refreshThermostatsCounter.set(refreshIntervalNormal);
|
||||
SummaryResponseDTO summary = api.performThermostatSummaryQuery();
|
||||
if (summary != null && summary.hasChanged(previousSummary) && !thermostatIds.isEmpty()) {
|
||||
for (ThermostatDTO thermostat : api.performThermostatQuery(thermostatIds)) {
|
||||
EcobeeThermostatBridgeHandler handler = thermostatHandlers.get(thermostat.identifier);
|
||||
if (handler != null) {
|
||||
handler.updateChannels(thermostat);
|
||||
List<ThermostatDTO> thermostats = api.performThermostatQuery(thermostatIds);
|
||||
if (thermostats != null) {
|
||||
for (ThermostatDTO thermostat : thermostats) {
|
||||
EcobeeThermostatBridgeHandler handler = thermostatHandlers.get(thermostat.identifier);
|
||||
if (handler != null) {
|
||||
handler.updateChannels(thermostat);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user