ITADN

[Bug]: ha-button size="small" is deprecated. Use size="s" instead.

#96Openjonwaland 创建于 2026-06-08
bug
J
jonwalandcommented
### Short summary 📝 ha-button.ts:37 [ha-button] size="small" is deprecated. Use size="s" instead. The long-form value will be removed in the next major version. ### Detailed description 📋 Taken from browser console: `ha-button.ts:37 [ha-button] size="small" is deprecated. Use size="s" instead. The long-form value will be removed in the next major version.` searching code: ``` lunar-phase-card/lunar-phase-card.js: <ha-button size="small" variant=${i} appearance="filled"><ha-icon .icon=${t?"mdi:table-edit":"mdi:code-json"}></ha-icon></ha-button> lunar-phase-card/lunar-phase-card.js: `:Y` <ha-button size="small" variant=${i} appearance="filled"> ${t?"Close Editor":"Edit YAML"} </ha-button> `};let cN=class extends ut{constructor(){super(...arguments),this.hidePrimary=!1,this.hideSecondary=!1,this.hidePrimaryIcon=!1,this.primaryAction="back"}render(){const t=rN[this.primaryAction]||this.primaryAction;return Y` lunar-phase-card/lunar-phase-card.js: <ha-button size="small" variant="neutral" appearance="filled"> ``` ### Version 📦 v1.12.0 ### Card Configuration ```yaml type: custom:lunar-phase-card location_source: default southern_hemisphere: true latitude: -33.7554637 longitude: 151.1319753 language: en hide_background: false custom_theme: default default_section: base compact_view: false moon_position: left hide_buttons: false hide_compact_label: false calendar_modal: false number_decimals: 2 mile_unit: false 12hr_format: false font_config: header_font_size: x-large header_font_style: capitalize header_font_color: "" label_font_size: auto label_font_style: none label_font_color: "" graph_chart_config: graph_type: default y_ticks: false x_ticks: false show_time: true show_current: true show_highest: true y_ticks_position: left y_ticks_step_size: 30 time_step_size: 30 ``` ### Environment 🌐 Chrome Version 148.0.7778.217 (Official Build) (64-bit) on WIN 10 ### Logs and screenshots 📂 _No response_
0 条评论