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) { foreach ($users as $key => $user) {
$response[] = [ $response[] = [
"userName" => $user['username'], "userName" => $user['username'],
"homeStatus" => ($user['at_home']) ? true : false, "homeStatus" => ($user['at_home'] == 'true') ? true : false,
"avatarUrl" => UserManager::getAvatarUrl($user['user_id']), "avatarUrl" => UserManager::getAvatarUrl($user['user_id']),
]; ];
} }

View File

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