Skip to content
This repository has been archived by the owner on Jan 18, 2023. It is now read-only.

Commit

Permalink
Additional formatting fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
jschlackman authored Feb 28, 2018
1 parent e73c0c1 commit 1b23d1d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def send() {
def open = sensors.findAll { it?.latestValue("contact") == "open" }
def plural = open.size() > 1 ? "are" : "is"
def weather = null
def msg = "${open.join(', ')} ${plural} open and"
def msg = "${open.join(', ')} ${plural} open and "

// Check the rain forecast if requested by user
if(checkRain == "Yes") {
Expand All @@ -169,7 +169,7 @@ def send() {

// Send message about rain if it is expected.
if(weather) {
msg = msg + " ${weather} coming. "
msg = msg + "${weather} coming. "

// Report chance of rain if requested by user.
if (messageRainChance == "Yes") {
Expand Down

0 comments on commit 1b23d1d

Please sign in to comment.