mirror of
				https://github.com/beestat/app.git
				synced 2025-11-04 02:47:01 -05:00 
			
		
		
		
	Fixed outdoor temperature on system card cutting off instead of rounding
This commit is contained in:
		
							parent
							
								
									d9a577f7b2
								
							
						
					
					
						commit
						b816715612
					
				@ -82,9 +82,6 @@ beestat.component.card.system.prototype.decorate_circle_ = function(parent) {
 | 
				
			|||||||
beestat.component.card.system.prototype.decorate_weather_ = function(parent) {
 | 
					beestat.component.card.system.prototype.decorate_weather_ = function(parent) {
 | 
				
			||||||
  var thermostat = beestat.cache.thermostat[beestat.setting('thermostat_id')];
 | 
					  var thermostat = beestat.cache.thermostat[beestat.setting('thermostat_id')];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  var temperature = beestat.temperature(thermostat.weather.temperature);
 | 
					 | 
				
			||||||
  var temperature_whole = Math.floor(temperature);
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  var circle = $.createElement('div')
 | 
					  var circle = $.createElement('div')
 | 
				
			||||||
    .style({
 | 
					    .style({
 | 
				
			||||||
      'padding': (beestat.style.size.gutter / 2),
 | 
					      'padding': (beestat.style.size.gutter / 2),
 | 
				
			||||||
@ -122,7 +119,11 @@ beestat.component.card.system.prototype.decorate_weather_ = function(parent) {
 | 
				
			|||||||
      'font-size': '22px',
 | 
					      'font-size': '22px',
 | 
				
			||||||
      'font-weight': beestat.style.font_weight.light
 | 
					      'font-weight': beestat.style.font_weight.light
 | 
				
			||||||
    })
 | 
					    })
 | 
				
			||||||
    .innerHTML(temperature_whole);
 | 
					    .innerHTML(beestat.temperature({
 | 
				
			||||||
 | 
					      'round': 0,
 | 
				
			||||||
 | 
					      'units': false,
 | 
				
			||||||
 | 
					      'temperature': thermostat.weather.temperature
 | 
				
			||||||
 | 
					    }));
 | 
				
			||||||
  temperature_container.appendChild(temperature_whole_container);
 | 
					  temperature_container.appendChild(temperature_whole_container);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  var humidity_container = $.createElement('div')
 | 
					  var humidity_container = $.createElement('div')
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user