# Device: should be object (#/properties/settings/type)

**URL:** <https://community.homey.app/t/device-should-be-object-properties-settings-type/102871>\
**Category:** Developers\
**Created:** [February 1, 2024, 1:36am UTC](https://community.homey.app/t/device-should-be-object-properties-settings-type/102871 "2024-02-01T01:36:02Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [February 1, 2024, 6:28am UTC](https://community.homey.app/t/device-should-be-object-properties-settings-type/102871/2 "2024-02-01T06:28:49Z")

</div>

> [@Jonas\_Enge](#):
>
> Something I’m doing wrong about the settings?

Yes, you’re declaring it [as an array](https://github.com/maccyber/homey-nissan-leaf/blob/main/drivers/leaf/driver.js#L58-L63), not an object.

It should look like this:

```auto
const settings = {
  username,
  password,
  pollInterval,
  regionCode,
};

```

Which is short for:

```auto
const settings = {
  username : username,
  password : password,
  pollInterval : pollInterval,
  regionCode : regionCode,
};

```

---

_[View the full topic](https://community.homey.app/t/device-should-be-object-properties-settings-type/102871)._
