Fix lint warnings. (#166)

This commit is contained in:
andrey-git 2016-12-27 22:27:53 +02:00 committed by Paulus Schoutsen
parent b5c3575cb5
commit 04b510e4b5

View File

@ -366,12 +366,14 @@ Polymer({
this.callService('volume_set', { volume_level: vol });
},
sendTTS: function (ev) {
var services = hass.reactor.evaluate(
hass.serviceGetters.entityMap).get('tts').get('services').keySeq().toArray();
sendTTS: function () {
var services = this.hass.reactor.evaluate(
this.hass.serviceGetters.entityMap).get('tts').get('services').keySeq()
.toArray();
var service;
var i;
for (var i = 0; i < services.length; i++) {
for (i = 0; i < services.length; i++) {
if (services[i].indexOf('_say') !== -1) {
service = services[i];
break;
@ -379,7 +381,6 @@ Polymer({
}
if (!service) {
alert('Unable to find TTS say service');
return;
}