mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-14 12:56:37 +00:00
fixed code style
This commit is contained in:
parent
5e9ac5d49b
commit
40f30b3f18
@ -108,7 +108,7 @@ export default new Polymer({
|
||||
this.volumeSliderValue = newVal.attributes.volume_level * 100;
|
||||
this.isMuted = newVal.attributes.is_volume_muted;
|
||||
this.source = newVal.attributes.source;
|
||||
this.sourceIndex = newVal.attributes.source_list === undefined ? 0 : newVal.attributes.source_list.indexOf(this.source);
|
||||
this.sourceIndex = 0;
|
||||
this.supportsPause = (newVal.attributes.supported_media_commands & 1) !== 0;
|
||||
this.supportsVolumeSet = (newVal.attributes.supported_media_commands & 4) !== 0;
|
||||
this.supportsVolumeMute = (newVal.attributes.supported_media_commands & 8) !== 0;
|
||||
@ -118,6 +118,10 @@ export default new Polymer({
|
||||
this.supportsTurnOff = (newVal.attributes.supported_media_commands & 256) !== 0;
|
||||
this.supportsVolumeButtons = (newVal.attributes.supported_media_commands & 1024) !== 0;
|
||||
this.supportsSelectSource = (newVal.attributes.supported_media_commands & 2048) !== 0;
|
||||
|
||||
if (newVal.attributes.source_list !== undefined) {
|
||||
this.sourceIndex = newVal.attributes.source_list.indexOf(this.source);
|
||||
}
|
||||
}
|
||||
|
||||
this.async(() => this.fire('iron-resize'), 500);
|
||||
|
Loading…
x
Reference in New Issue
Block a user