`;
}
_renderFanSwingRow() {
const hasFanMode = supportsFeature(this.stateObj, ClimateEntityFeature.FAN_MODE);
const hasSwingMode = supportsFeature(this.stateObj, ClimateEntityFeature.SWING_MODE);
const hasSwingHorizontal = supportsFeature(this.stateObj, ClimateEntityFeature.SWING_HORIZONTAL_MODE);
// If none are present, return nothing
if (!hasFanMode && !hasSwingMode && !hasSwingHorizontal) {
return '';
}
// If only one is present, show it full width
if (hasFanMode && !hasSwingMode && !hasSwingHorizontal) {
return this._renderFanModes();
}
if (!hasFanMode && hasSwingMode && !hasSwingHorizontal) {
return this._renderSwingModes();
}
if (!hasFanMode && !hasSwingMode && hasSwingHorizontal) {
return this._renderSwingHorizontalModes();
}
// Show all present modes in a row
return b `