remove scale text

This commit is contained in:
Cyberes 2024-08-20 17:20:27 -06:00
parent 799953c0a2
commit f75284c6f5
2 changed files with 12 additions and 15 deletions

View File

@ -92,25 +92,25 @@ class SpaceWeather24hrMaxCard extends HTMLElement {
<div class="scale-value noaa_scale_bg_${this._getNumericState('sensor.space_weather_scale_r_24hr_max')}"> <div class="scale-value noaa_scale_bg_${this._getNumericState('sensor.space_weather_scale_r_24hr_max')}">
${this._getStateValue('sensor.space_weather_scale_r_24hr_max')} ${this._getStateValue('sensor.space_weather_scale_r_24hr_max')}
</div> </div>
<div class="scale-text"> <!-- <div class="scale-text">
${this._getStateAttribute('sensor.space_weather_scale_r_24hr_max', 'text')} ${this._getStateAttribute('sensor.space_weather_scale_r_24hr_max', 'text')}
</div> </div> -->
</div> </div>
<div class="scale-item" data-entity-id="sensor.space_weather_scale_s_24hr_max"> <div class="scale-item" data-entity-id="sensor.space_weather_scale_s_24hr_max">
<div class="scale-value noaa_scale_bg_${this._getNumericState('sensor.space_weather_scale_s_24hr_max')}"> <div class="scale-value noaa_scale_bg_${this._getNumericState('sensor.space_weather_scale_s_24hr_max')}">
${this._getStateValue('sensor.space_weather_scale_s_24hr_max')} ${this._getStateValue('sensor.space_weather_scale_s_24hr_max')}
</div> </div>
<div class="scale-text"> <!-- <div class="scale-text">
${this._getStateAttribute('sensor.space_weather_scale_s_24hr_max', 'text')} ${this._getStateAttribute('sensor.space_weather_scale_s_24hr_max', 'text')}
</div> </div> -->
</div> </div>
<div class="scale-item" data-entity-id="sensor.space_weather_scale_g_24hr_max"> <div class="scale-item" data-entity-id="sensor.space_weather_scale_g_24hr_max">
<div class="scale-value noaa_scale_bg_${this._getNumericState('sensor.space_weather_scale_g_24hr_max')}"> <div class="scale-value noaa_scale_bg_${this._getNumericState('sensor.space_weather_scale_g_24hr_max')}">
${this._getStateValue('sensor.space_weather_scale_g_24hr_max')} ${this._getStateValue('sensor.space_weather_scale_g_24hr_max')}
</div> </div>
<div class="scale-text"> <!-- <div class="scale-text">
${this._getStateAttribute('sensor.space_weather_scale_g_24hr_max', 'text')} ${this._getStateAttribute('sensor.space_weather_scale_g_24hr_max', 'text')}
</div> </div> -->
</div> </div>
</div> </div>
</div> </div>

View File

@ -88,31 +88,28 @@ class SpaceWeatherCard extends HTMLElement {
<div class="card-content"> <div class="card-content">
<div class="scale-container"> <div class="scale-container">
<div class="scale-item" data-entity-id="sensor.space_weather_scale_r"> <div class="scale-item" data-entity-id="sensor.space_weather_scale_r">
<!-- <div class="scale-label">R Scale</div>-->
<div class="scale-value noaa_scale_bg_${this._getNumericState('sensor.space_weather_scale_r')}"> <div class="scale-value noaa_scale_bg_${this._getNumericState('sensor.space_weather_scale_r')}">
${this._getStateValue('sensor.space_weather_scale_r')} ${this._getStateValue('sensor.space_weather_scale_r')}
</div> </div>
<div class="scale-text"> <!-- <div class="scale-text">
${this._getStateAttribute('sensor.space_weather_scale_r', 'text')} ${this._getStateAttribute('sensor.space_weather_scale_r', 'text')}
</div> </div> -->
</div> </div>
<div class="scale-item" data-entity-id="sensor.space_weather_scale_s"> <div class="scale-item" data-entity-id="sensor.space_weather_scale_s">
<!-- <div class="scale-label">S Scale</div>-->
<div class="scale-value noaa_scale_bg_${this._getNumericState('sensor.space_weather_scale_s')}"> <div class="scale-value noaa_scale_bg_${this._getNumericState('sensor.space_weather_scale_s')}">
${this._getStateValue('sensor.space_weather_scale_s')} ${this._getStateValue('sensor.space_weather_scale_s')}
</div> </div>
<div class="scale-text"> <!-- <div class="scale-text">
${this._getStateAttribute('sensor.space_weather_scale_s', 'text')} ${this._getStateAttribute('sensor.space_weather_scale_s', 'text')}
</div> </div> -->
</div> </div>
<div class="scale-item" data-entity-id="sensor.space_weather_scale_g"> <div class="scale-item" data-entity-id="sensor.space_weather_scale_g">
<!-- <div class="scale-label">G Scale</div>-->
<div class="scale-value noaa_scale_bg_${this._getNumericState('sensor.space_weather_scale_g')}"> <div class="scale-value noaa_scale_bg_${this._getNumericState('sensor.space_weather_scale_g')}">
${this._getStateValue('sensor.space_weather_scale_g')} ${this._getStateValue('sensor.space_weather_scale_g')}
</div> </div>
<div class="scale-text"> <!-- <div class="scale-text">
${this._getStateAttribute('sensor.space_weather_scale_g', 'text')} ${this._getStateAttribute('sensor.space_weather_scale_g', 'text')}
</div> </div> -->
</div> </div>
</div> </div>
</div> </div>