Skip to content

Commit

Permalink
Fixed the callback to use the correct service
Browse files Browse the repository at this point in the history
  • Loading branch information
JosephAbbey authored Nov 8, 2023
1 parent 0522cff commit 9100ade
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/panels/lovelace/tile-features/hui-number-tile-feature.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ class HuiNumberTileFeature extends LitElement implements LovelaceTileFeature {
private async _setValue(ev: CustomEvent) {
const stateObj = this.stateObj!;

await this.hass!.callService("input_number", "set_value", {
const domain = computeDomain(stateObj.entity_id);

await this.hass!.callService(domain, "set_value", {
entity_id: stateObj.entity_id,
value: ev.detail.value,
});
Expand Down

0 comments on commit 9100ade

Please sign in to comment.