mirror of
https://github.com/beestat/app.git
synced 2025-06-13 10:34:25 -04:00
Fixed #273 - Thermostat group temperature profiles overwrite each other
Variable got overwritten with another variable.
This commit is contained in:
parent
4d9e1e660a
commit
7ffea8ec2d
@ -129,10 +129,7 @@ class temperature_profile extends cora\api {
|
|||||||
);
|
);
|
||||||
|
|
||||||
// Get all of the relevant data
|
// Get all of the relevant data
|
||||||
$thermostat_ids = [];
|
$thermostat_ids = array_column($group_thermostats, 'thermostat_id');
|
||||||
foreach($group_thermostats as $thermostat) {
|
|
||||||
$thermostat_ids[] = $thermostat['thermostat_id'];
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the largest possible chunk size given the number of thermostats I
|
* Get the largest possible chunk size given the number of thermostats I
|
||||||
|
Loading…
x
Reference in New Issue
Block a user