mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-11 11:26:35 +00:00
fixed code style
This commit is contained in:
parent
87067ea16f
commit
eaeff8434d
@ -108,7 +108,7 @@ export default new Polymer({
|
|||||||
this.volumeSliderValue = newVal.attributes.volume_level * 100;
|
this.volumeSliderValue = newVal.attributes.volume_level * 100;
|
||||||
this.isMuted = newVal.attributes.is_volume_muted;
|
this.isMuted = newVal.attributes.is_volume_muted;
|
||||||
this.source = newVal.attributes.source;
|
this.source = newVal.attributes.source;
|
||||||
this.sourceIndex = newVal.attributes.source_list.indexOf(this.source)
|
this.sourceIndex = newVal.attributes.source_list.indexOf(this.source);
|
||||||
this.supportsPause = (newVal.attributes.supported_media_commands & 1) !== 0;
|
this.supportsPause = (newVal.attributes.supported_media_commands & 1) !== 0;
|
||||||
this.supportsVolumeSet = (newVal.attributes.supported_media_commands & 4) !== 0;
|
this.supportsVolumeSet = (newVal.attributes.supported_media_commands & 4) !== 0;
|
||||||
this.supportsVolumeMute = (newVal.attributes.supported_media_commands & 8) !== 0;
|
this.supportsVolumeMute = (newVal.attributes.supported_media_commands & 8) !== 0;
|
||||||
@ -183,8 +183,8 @@ export default new Polymer({
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var sourceInput = this.stateObj.attributes.source_list[sourceIndex];
|
const sourceInput = this.stateObj.attributes.source_list[sourceIndex];
|
||||||
if (sourceInput == this.stateObj.attributes.source) {
|
if (sourceInput === this.stateObj.attributes.source) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user