Commit Graph

55 Commits

Author SHA1 Message Date
Jacob Laursen
686eeeeb6c Provide unit hints for humidity/noise/volume channels (#16614)
* Provide unit hints for humidity channel types

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>

* Provide unit hints for noise/volume channel types

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>

---------

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:48:44 +02:00
Wouter Born
ef59934e9c Use diamond operator and remove redundant type arguments (#16249)
Signed-off-by: Wouter Born <github@maindrain.net>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:48:25 +02:00
Wouter Born
9c6c475a1c Remove unnecessary semicolons (#16214)
This helps with stopping the proliferation of unnecessary semicolons.

Signed-off-by: Wouter Born <github@maindrain.net>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:48:25 +02:00
Jacob Laursen
92145428df Update license headers to 2024 (#16168)
* Update copyright year in configuration
* Update license headers
* Manually update nibeheatpump headers (.cpp/.h/.ino)
* Manually update smsmodem header
* Manually update hueemulation header
* Manually update addon-header.xml header

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:48:23 +02:00
Wouter Born
eba975c040
[amazonechocontrol] Fix Servlet exceptions due to non-unique names (#16152)
Fixes #16149

Signed-off-by: Wouter Born <github@maindrain.net>
2023-12-31 01:03:24 +01:00
Wouter Born
c58d894bf0
Use OnOffType.from to reduce code (#16101)
You can create an `OnOffType` using a boolean nowadays which reduces the amount of code.

Signed-off-by: Wouter Born <github@maindrain.net>
2023-12-23 19:06:21 +01:00
Holger Friedrich
cbf4411034
Improve javadoc for all addons (#15667)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2023-09-30 21:49:12 +02:00
Holger Friedrich
cf10b3e9c7
Java 17 features (A-G) (#15516)
- add missing @override
- Java style array syntax
- remove redundant modifiers
- always move String constants to left side in comparisons
- simplify lambda expressions and return statements
- use replace instead of replaceAll w/o regex
- instanceof matching and multiline strings

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2023-09-05 22:30:16 +02:00
Holger Friedrich
a5c47aebee
Reduce SAT warnings (#15090)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2023-06-15 00:02:10 +02:00
mlobstein
36b2dbfbc9
Declare connection for bindings A thru F (#14901)
* Declare connection for bindings A-F

Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
2023-04-29 10:10:19 +02:00
Wouter Born
83cbe746d0
Remove redundant modifiers from interfaces (#14843)
Signed-off-by: Wouter Born <github@maindrain.net>
2023-04-18 13:07:04 +02:00
openhab-bot
a3c621fffc
New Crowdin updates (#14541)
* New translations iCloud.properties (German)
* New translations miele.properties (German)
* New translations jruby.properties (German)
* New translations mqtt.properties (German)
* New translations influxdb.properties (German)
* New translations homekit.properties (German)
* New translations amazonechocontrol.properties (German)
* New translations amazonechocontrol.properties (German)
2023-03-05 20:25:51 +01:00
openhab-bot
5da73468e5
New Crowdin updates (#14358)
* New translations airquality.properties (Italian)
* New translations adorne.properties (Italian)
* New translations airq.properties (Italian)
* New translations airvisualnode.properties (Italian)
* New translations allplay.properties (Italian)
* New translations amazonechocontrol.properties (Italian)
* New translations amplipi.properties (Italian)
* New translations androiddebugbridge.properties (Italian)
2023-02-06 20:54:05 +01:00
J-N-K
89d0689e36
fix i18n for bindings (#14235)
Also-By: Jacob Laursen <jacob-github@vindvejr.dk>
Signed-off-by: Jan N. Klug <github@klug.nrw>
2023-01-21 12:14:51 +01:00
J-N-K
5f8214f08a
Adapt to core changes (addon.xml) (#13289)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2023-01-15 20:31:42 +01:00
Jacob Laursen
4dd6d3a8a2
Update license headers to 2023 (#14154)
* Update copyright year in configuration
* Update license headers

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2023-01-06 09:49:54 +01:00
Дилян Палаузов
78534e8106
Typos a/an (#13812) 2022-12-01 14:30:50 +01:00
openhab-bot
337241f40e
New Crowdin updates (#13514)
* New translations ambientweather.properties (Italian)
* New translations amazonechocontrol.properties (Italian)
* New translations jpa.properties (Italian)
* New translations openwebnet.properties (Italian)
2022-10-09 09:40:59 +02:00
Daniel Campbell
8d3828a9a4
[amazonechocontrol] Add channels to thermostatController (#13067)
* enhance: add thermostat channels to amazonechocontrol

Signed-off-by: Daniel Campbell <djcampbell79@gmail.com>
2022-08-01 12:48:37 +02:00
Hilbrand Bouwkamp
da59cdd255
Update license headers to 2022 (#11973)
Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
2022-01-06 18:14:47 +01:00
Christoph Weitkamp
167f8ebc49
Avoid UnsupportedEncodingException & use const from StandardCharsets (#11948)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2022-01-03 16:05:08 +01:00
openhab-bot
3f54327d5a
New Crowdin updates (#11890)
* New translations adorne.properties (German)
* New translations ahawastecollection.properties (German)
* New translations airquality.properties (German)
* New translations airvisualnode.properties (German)
* New translations amazonechocontrol.properties (German)
* New translations astro.properties (Finnish)
* New translations astro.properties (French)
* New translations bosesoundtouch.properties (German)
* New translations chromecast.properties (German)
* New translations denonmarantz.properties (German)
* New translations exec.properties (German)
* New translations hue.properties (French)
* New translations icalendar.properties (German)
* New translations jruby.properties (German)
* New translations jruby.properties (Italian)
* New translations luxtronikheatpump.properties (German)
* New translations mielecloud.properties (German)
* New translations openuv.properties (French)
* New translations openweathermap.properties (German)
* New translations phc.properties (German)
* New translations powermax.properties (French)
* New translations pushsafer.properties (German)
* New translations rotel.properties (French)
* New translations tradfri.properties (French)
2022-01-03 16:00:47 +01:00
J-N-K
aaf0132d01
[amazonechocontrol] Fix refresh time for skill connected devices (#11943)
Signed-Off-By: Jan N. Klug <github@klug.nrw>
2022-01-03 15:32:20 +01:00
Wouter Born
07a1976c81
Add default translations for binding add-ons (#11760)
* Add default translations for binding add-ons

This makes the texts used by these add-ons translatable with Crowdin.

To keep the PR simple, it only adds default translations for add-ons which do not yet have any default translations properties file.
We can do follow up PRs for adding missing key/values to add-ons that already have these files or to remove duplications.

There are several add-ons in this PR that do have non-English translation files, so I'll upload those to Crowdin when the PR is merged.

Signed-off-by: Wouter Born <github@maindrain.net>
2021-12-15 18:40:21 +01:00
Wouter Born
589400e223
Fix/suppress PMD CompareObjectsWithEquals findings (#11476)
Newer PMD versions discover more CompareObjectsWithEquals findings.

Related to https://github.com/openhab/static-code-analysis/pull/423

Signed-off-by: Wouter Born <github@maindrain.net>
2021-11-02 10:43:53 +01:00
Wouter Born
798abaa4ca
Switch properties files encoding from ISO-8859-1 to UTF-8 (#11349)
* Switch properties files encoding from ISO-8859-1 to UTF-8

Crowdin will generate translations in this encoding, so this prevents a lot of diffs which makes it easier to review future Crowdin PRs.

Related to openhab/openhab-core#2298

Signed-off-by: Wouter Born <github@maindrain.net>
2021-10-09 19:56:49 +02:00
Wouter Born
1633c705a1
Use Collection.isEmpty (#10525)
Fixes 47 SAT UseCollectionIsEmpty findings.

Signed-off-by: Wouter Born <github@maindrain.net>
2021-04-15 21:00:47 +02:00
Wouter Born
0c36650179
Avoid star imports and add missing braces (#10521)
Fixes the following SAT findings:

* AvoidStarImportCheck (125)
* NeedBracesCheck (39)

Signed-off-by: Wouter Born <github@maindrain.net>
2021-04-15 16:12:05 +02:00
J-N-K
b65e932650
[amazonechocontrol] fix smarthome device naming (#10084)
* fix smarthome device naming
* toString

Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
2021-02-07 13:56:31 -08:00
J-N-K
429183b75b
[amazonechocontrol] fix api url (#9982)
Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
2021-01-29 20:33:32 +01:00
J-N-K
2afb06948a
remove dependency on o.a.c.l (#9835)
Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
2021-01-17 19:22:07 +01:00
J-N-K
7e5e0e2295
[amazonechocontrol] fix thermostat handler (#9812)
* fix thermostat handler
* fix spotless

Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
2021-01-13 16:34:17 -08:00
J-N-K
e651aa6d03
[amazonechocontrol] refactor arrays to modern types (#9476)
* refactor arrays to modern types
* address review comments

Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
2021-01-13 14:31:26 -08:00
GiviMAD
d9caa46031
[amazonechocontrol] fix SmartHomeDevice channels (#9644)
* [amazonechocontrol] add channel-types to schema
* [amazonechocontrol] use mergedApplianceIds to query state

Signed-off-by: Miguel <miguelwork92@gmail.com>
2021-01-03 09:00:55 +01:00
Wouter Born
d6364aceb1
Update license headers to 2021 (#9620)
Signed-off-by: Wouter Born <github@maindrain.net>
2021-01-02 22:03:14 +01:00
J-N-K
b541de6b22
[amazonechocontrol] Fixed link to UI (#9431)
* fix link in servlet

Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
2020-12-19 20:25:12 +01:00
J-N-K
a156f3ca15
fix duplicate serialNumbers (#9422)
Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
2020-12-18 23:17:52 +01:00
J-N-K
70adea298a
[amazonechocontrol] fix text commands stopping TTS (#9346)
Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
2020-12-12 10:21:47 -08:00
J-N-K
5d49188e0b
[amazonechocontrol] fix unnecessary refresh and add text commands (#9328)
* fixed: removed unnecessary refresh on push activity

Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
Also-By: Tom Blum <trinitus01@googlemail.com>
Co-authored-by: Tom Blum <trinitus01@googlemail.com>
2020-12-11 16:17:20 -08:00
J-N-K
4453a04eea
[amazonechocontrol] proper handling of null values in reminders (#9285)
Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
2020-12-07 15:31:32 -08:00
J-N-K
e3a659e8d3
[amazonechocontrol] improve logging (#9241)
Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
2020-12-07 12:05:11 -08:00
Wouter Born
ac6f08908f
Use renamed Units class (#9267)
Signed-off-by: Wouter Born <github@maindrain.net>
2020-12-07 10:34:02 +01:00
Sven Killig
4fafb06251
[amazonechocontrol] HandlerTemperatureSensor: increase resolution (#9246)
Signed-off-by: Sven Killig <sven@killig.de>
2020-12-06 18:31:47 +01:00
Sven Killig
68dd5569f0
[amazonechocontrol] HandlerThermostatController (#9212)
* HandlerThermostatController

Signed-off-by: Sven Killig <sven@killig.de>
2020-12-05 17:20:17 +01:00
J-N-K
b27ddbe9fc
[amazonechoontrol] fix announcement without speak (#9213)
* fix announcement without speak
* improve code

Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
2020-12-03 17:24:56 -08:00
J-N-K
9211248f96
fix announcement (#9155)
Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
2020-11-28 13:10:19 +01:00
J-N-K
1b588bc4fa
[amazonechocontrol] improvements and bug fixes (#9057)
* fixed: InterrupedException
* changed: single and group queues to device queue
added: standard volume to speak request
* changed: log from info to debug
* fix compile warnings
* remove dependency on StringUtils
* more improvements
* fix HandlerPowerController
* attempt to solve stopping tts
* logging powercontroller
* fix smarthome devices not updating
* finalize smarthome device update fix
* additional device information logging for discovery
* fix color channel for smarthome devices

Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>

Co-authored-by: Tom Blum <trinitus01@googlemail.com>
Co-authored-by: Connor Petty <mistercpp2000@gmail.com>
2020-11-25 12:15:29 -08:00
Kai Kreuzer
007c3b56e5
removed deprecated author information from binding.xml (#9113)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2020-11-23 19:06:33 -08:00
J-N-K
ba4c96d99d
[infrastructure] move infered nullness warnings to error and update EEA (#8949)
Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
2020-11-12 21:07:11 +01:00
Wouter Born
b423f93b1f
Remove Map null annotation workarounds (#8916)
These workarounds to prevent false positives can be removed now the EEAs allow for proper null analysis.

Signed-off-by: Wouter Born <github@maindrain.net>
2020-11-04 13:57:24 +01:00