# Developer Web API Playground - Notes of geeky oneliners

**URL:** <https://community.homey.app/t/developer-web-api-playground-notes-of-geeky-oneliners/24392>\
**Category:** Developers\
**Created:** [January 13, 2020, 9:08pm UTC](https://community.homey.app/t/developer-web-api-playground-notes-of-geeky-oneliners/24392 "2020-01-13T21:08:40Z")\
**Posts on this page:** 1\
**Showing post:** 6

<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:** [March 12, 2021, 8:53am UTC](https://community.homey.app/t/developer-web-api-playground-notes-of-geeky-oneliners/24392/6 "2021-03-12T08:53:07Z")

</div>

> [@Koktail](#):
>
> `Promise.resolve(promise).then(…)`

This can be shortened to `promise.then(…)` 🙂

Or this:

```auto
Homey.devices.getDevices()
.then(f => {
   return Object.values(f).filter((device) => device.driverUri === 'homey:app:com.mi.flora');
})
.then(devices => console.log(JSON.stringify(devices)));

```

---

_[View the full topic](https://community.homey.app/t/developer-web-api-playground-notes-of-geeky-oneliners/24392)._
