Skip to content

Commit

Permalink
Fix complex attribute and expressionless property bindings (home-assi…
Browse files Browse the repository at this point in the history
  • Loading branch information
steverep authored Jan 15, 2024
1 parent 70fcea0 commit b881a2a
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/components/ha-date-range-picker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,8 @@ export class HaDateRangePicker extends LitElement {
?auto-apply=${this.autoApply}
time-picker=${this.timePicker}
twentyfour-hours=${this._hour24format}
start-date=${this.startDate}
end-date=${this.endDate}
start-date=${this.startDate.toISOString()}
end-date=${this.endDate.toISOString()}
?ranges=${this.ranges !== false}
opening-direction=${this.openingDirection ||
this._calcedOpeningDirection}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class DialogZWaveJSHardResetController extends LitElement {
<div>
<ha-svg-icon
.path=${iconMap[this._resetStatus]}
.class="icon"
class="icon"
></ha-svg-icon>
</div>
<p>
Expand Down
2 changes: 1 addition & 1 deletion src/panels/config/network/supervisor-network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ export class HassioNetwork extends LitElement {
.label=${this.hass.localize(
"ui.panel.config.network.supervisor.wifi_password"
)}
.version="wifi"
.version=${"wifi"}
@change=${this._handleInputValueChangedWifi}
>
</ha-textfield>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ class HuiTargetTemperatureCardFeature
<ha-control-button-group>
<ha-control-number-buttons
.formatOptions=${options}
.target="value"
.target=${"value"}
.value=${this.stateObj.attributes.temperature}
.unit=${this.hass.config.unit_system.temperature}
.min=${this._min}
Expand Down
2 changes: 0 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@
"no-legacy-attribute": "error",
// Binding types
"no-boolean-in-attribute-binding": "warning",
"no-expressionless-property-binding": "warning",
"no-complex-attribute-binding": "warning",
"no-nullable-attribute-binding": "warning",
"no-incompatible-type-binding": "warning",
// LitElement
Expand Down

0 comments on commit b881a2a

Please sign in to comment.