Some quick fix

This commit is contained in:
JonatanRek 2020-07-01 12:07:00 +02:00
parent 3669fde596
commit cdcddffc69
2 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@ class UsersApi extends ApiController{
foreach ($users as $key => $user) {
$response[] = [
"userName" => $user['username'],
"homeStatus" => ($user['at_home']) ? true : false,
"homeStatus" => ($user['at_home'] == 'true') ? true : false,
"avatarUrl" => UserManager::getAvatarUrl($user['user_id']),
];
}

View File

@ -75,7 +75,7 @@ class GoogleHomeDeviceTypes {
'control-light' => 'action.devices.types.LIGHT',
'control-socket' => 'action.devices.types.OUTLET',
'control-temp' => 'action.devices.types.THERMOSTAT',
'control-media' => 'action.devices.types.REMOTECONTROL',
'control-media' => 'action.devices.types.REMOTE',
];
private static $traidWordBook = [
@ -101,7 +101,7 @@ class GoogleHomeDeviceTypes {
'volumeDefaultPercentage' => 6,
'volumeMaxLevel' => 100,
'levelStepSize' => 2,
'commandOnlyVolume' => false,
'commandOnlyVolume' => true,
],
'media_status'=> [
'transportControlSupportedCommands' => [