Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[jeelink] Use serial transport #7620

Merged
merged 2 commits into from
May 13, 2020
Merged

[jeelink] Use serial transport #7620

merged 2 commits into from
May 13, 2020

Conversation

wborn
Copy link
Member

@wborn wborn commented May 12, 2020

Related to #7573

Related to openhab#7573

Signed-off-by: Wouter Born <github@maindrain.net>
Comment on lines 73 to 77
SerialPortIdentifier portIdentifier = serialPortManager.getIdentifier(port);
if (portIdentifier == null) {
notifyAbort("Port not found: " + port);
return;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to move this logic into JeeLinkHandler's initialize method so you can put the thing offline with a config error? You should be able to pass around the SerialPortIdentifier instance instead of the SerialPortManager instance.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After revisiting the code it looks like it is possible. The static method was only used by the handler so that saves another level of passing stuff around. :-)

Signed-off-by: Wouter Born <github@maindrain.net>
Copy link
Contributor

@cpmeister cpmeister left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cpmeister cpmeister merged commit 194c471 into openhab:2.5.x May 13, 2020
@cpmeister cpmeister added this to the 2.5.5 milestone May 13, 2020
@wborn wborn deleted the jeelink-st branch May 13, 2020 20:15
LoungeFlyZ pushed a commit to LoungeFlyZ/openhab2-addons that referenced this pull request Jun 8, 2020
* [jeelink] Use serial transport

Related to openhab#7573
* Pass around SerialPortIdentifier instead of SerialPortManager

Signed-off-by: Wouter Born <github@maindrain.net>
J-N-K pushed a commit to J-N-K/openhab-addons that referenced this pull request Jul 14, 2020
* [jeelink] Use serial transport

Related to openhab#7573
* Pass around SerialPortIdentifier instead of SerialPortManager

Signed-off-by: Wouter Born <github@maindrain.net>
CSchlipp pushed a commit to CSchlipp/openhab-addons that referenced this pull request Jul 26, 2020
* [jeelink] Use serial transport

Related to openhab#7573
* Pass around SerialPortIdentifier instead of SerialPortManager

Signed-off-by: Wouter Born <github@maindrain.net>
Signed-off-by: CSchlipp <christian@schlipp.de>
andrewfg pushed a commit to andrewfg/openhab-addons that referenced this pull request Aug 31, 2020
* [jeelink] Use serial transport

Related to openhab#7573
* Pass around SerialPortIdentifier instead of SerialPortManager

Signed-off-by: Wouter Born <github@maindrain.net>
andrewfg pushed a commit to andrewfg/openhab-addons that referenced this pull request Aug 31, 2020
* [jeelink] Use serial transport

Related to openhab#7573
* Pass around SerialPortIdentifier instead of SerialPortManager

Signed-off-by: Wouter Born <github@maindrain.net>
andrewfg pushed a commit to andrewfg/openhab-addons that referenced this pull request Aug 31, 2020
* [jeelink] Use serial transport

Related to openhab#7573
* Pass around SerialPortIdentifier instead of SerialPortManager

Signed-off-by: Wouter Born <github@maindrain.net>
andrewfg pushed a commit to andrewfg/openhab-addons that referenced this pull request Aug 31, 2020
* [jeelink] Use serial transport

Related to openhab#7573
* Pass around SerialPortIdentifier instead of SerialPortManager

Signed-off-by: Wouter Born <github@maindrain.net>
DaanMeijer pushed a commit to DaanMeijer/openhab-addons that referenced this pull request Sep 1, 2020
* [jeelink] Use serial transport

Related to openhab#7573
* Pass around SerialPortIdentifier instead of SerialPortManager

Signed-off-by: Wouter Born <github@maindrain.net>
Signed-off-by: Daan Meijer <daan@studioseptember.nl>
markus7017 pushed a commit to markus7017/openhab-addons that referenced this pull request Sep 19, 2020
* [jeelink] Use serial transport

Related to openhab#7573
* Pass around SerialPortIdentifier instead of SerialPortManager

Signed-off-by: Wouter Born <github@maindrain.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants