Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 12 additions & 22 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,54 +1,44 @@
---
name: "🐛 Bug report"
about: Something isn't working correctly with the JavaScript library. This is the wrong place for user-interfaces or openHAB Core issues.
about: Something isn't working correctly with the JavaScript library
labels: bug
---

<!-- Provide a general summary of the issue in the *Title* above -->
<!-- If the issue is related to a binding, please include its short name in -->
<!-- square brackets in the title - Example: "[astro] My issue..." -->

<!-- Important: Please contact the openHAB community forum for questions or -->
<!-- for configuration and usage guidance: https://community.openhab.org -->

<!-- Feel free to delete any comment lines in the template (starting with "<!--") -->

## Expected Behavior
### Expected Behaviour

<!-- If you're describing a bug, tell us what should happen -->
<!-- If you're suggesting a change/improvement, tell us how it should work -->

## Current Behavior
### Current Behaviour

<!-- If describing a bug, tell us what happens instead of the expected behavior -->
<!-- If describing a bug, tell us what happens instead of the expected behaviour -->
<!-- Include related log information (preferably debug level) and related configs -->
<!-- Use a file attachment for log and config information longer than a few lines -->
<!-- Enclose multi-line log/code snippets with ``` on new lines for proper formatting -->
<!-- If suggesting a change/improvement, explain the difference from current behavior -->
<!-- For improvements, discuss at community.openhab.org first and include link to topic -->
<!-- If suggesting a change/improvement, explain the difference from current behaviour -->

## Possible Solution
### Possible Solution

<!-- Not obligatory, but suggest a fix/reason for the bug, -->
<!-- or ideas how to implement the addition or change -->

## Steps to Reproduce (for Bugs)
### Steps to Reproduce

<!-- Provide a link to a live example, or an unambiguous set of steps to -->
<!-- reproduce this bug. Include code to reproduce, if relevant -->
<!-- Describe us how to reproduce the issue -->
<!-- Use a list for it -->

1.
2.

## Context

<!-- How has this issue affected you? What are you trying to accomplish? -->
<!-- Providing context helps us come up with a solution that is most useful in the real world -->

## Your Environment

<!-- Include as many relevant details about the environment you experienced the bug in -->

- openHAB version used (check Main UI -> About):
- openhab-js version used (run `console.log('openhab-js ' + utils.OPENHAB_JS_VERSION)` from a JS script):
- Operating System and version (e.g. desktop or mobile, Windows 10, Raspbian Buster, ...):
- openHAB version used (check Main UI -> About):
- openhab-js version used (run `console.log('openhab-js ' + utils.OPENHAB_JS_VERSION)` from a JS script):
- Operating System and version (e.g. desktop or mobile, Windows 10, Raspbian Buster, ...):
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ contact_links:
url: https://community.openhab.org
about: Feel free to ask anything
- name: 📖 JS Scripting Documentation
url: https://www.openhab.org/addons/automation/jsscripting/
url: https://next.openhab.org/addons/automation/jsscripting/
about: Official documentation
- name: 📖 openHAB JavaScript Library advanced documentation (JSDoc)
url: https://openhab.github.io/openhab-js/
Expand Down
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/documentation_issue.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ about: Some information within the JavaScript library documentation is wrong or
labels: documentation
---

<!-- Please report only add-on related documentation issues here -->
<!-- Please report only documentation issues here -->
<!-- Documentation issues within user interfaces or the core should be -->
<!-- reported at https://github.com/openhab/openhab-docs/issues/new -->

<!-- Provide a general summary of the documentation issue in the *Title* above -->
<!-- If the documentation issue is related to a specific add-on, please include its short name in -->
<!-- square brackets in the title - Example: "[jsscripting] My documentation issue..." -->

<!-- Important: Please contact the openHAB community forum for questions or -->
<!-- for configuration and usage guidance: https://community.openhab.org -->

<!-- Feel free to delete any comment lines in the template (starting with "<!--") -->
6 changes: 2 additions & 4 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,13 @@ labels: enhancement
---

<!-- Provide a general summary of the feature request in the *Title* above -->
<!-- If the feature request is related to an add-on, please include its short name in -->
<!-- square brackets in the title - Example: "[astro] My feature request..." -->

<!-- Important: Please contact the openHAB community forum for questions or -->
<!-- for configuration and usage guidance: https://community.openhab.org -->

## Your Environment
<!-- Feel free to delete any comment lines in the template (starting with "<!--") -->

<!-- Include as many relevant details about the environment you experienced the bug in -->
## Your Environment

- openHAB version used (check Main UI -> About):
- openhab-js version used (run `console.log('openhab-js ' + utils.OPENHAB_JS_VERSION)` from a JS script):
Expand Down
5 changes: 5 additions & 0 deletions src/things.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,10 @@ class Thing {
}
}

function addThing () {

}

/**
* Gets an openHAB Thing.
* Returns `null` if no Thing with the given UID exists.
Expand All @@ -171,6 +175,7 @@ function getThings () {

module.exports = {
Thing,
addThing,
getThing,
getThings
};
Loading