mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
fixed code style
This commit is contained in:
parent
583e8e6726
commit
916de139ef
@ -1,7 +1,7 @@
|
|||||||
import Polymer from '../polymer';
|
import Polymer from '../polymer';
|
||||||
import hass from '../util/home-assistant-js-instance';
|
import hass from '../util/home-assistant-js-instance';
|
||||||
|
|
||||||
const { moreInfoActions, serviceActions } = hass;
|
const { moreInfoActions } = hass;
|
||||||
|
|
||||||
export default new Polymer({
|
export default new Polymer({
|
||||||
is: 'ha-media_player-card',
|
is: 'ha-media_player-card',
|
||||||
@ -45,7 +45,7 @@ export default new Polymer({
|
|||||||
playerObjChanged(playerObj) {
|
playerObjChanged(playerObj) {
|
||||||
this.style.height = '78px';
|
this.style.height = '78px';
|
||||||
if (this.computeShowControls(playerObj)) {
|
if (this.computeShowControls(playerObj)) {
|
||||||
this.style.height = playerObj.supportsSelectInputSource ? '232px' : '175px';
|
this.style.height = playerObj.supportsSelectInputSource ? '232px' : '175px';
|
||||||
}
|
}
|
||||||
|
|
||||||
this.style.backgroundImage = playerObj.stateObj.attributes.entity_picture ?
|
this.style.backgroundImage = playerObj.stateObj.attributes.entity_picture ?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user