Skip to content

Commit

Permalink
review: apply comment from @coderabbitai
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentame authored Jun 14, 2024
1 parent 62a552a commit 86b38ba
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/panels/lovelace/cards/hui-picture-entity-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,8 @@ class HuiPictureEntityCard extends LitElement implements LovelaceCard {
return nothing;
}

const stateObj = this.hass.states[this._config.entity] as
| CameraEntity
| ImageEntity
| PersonEntity;
const stateObj: CameraEntity | ImageEntity | PersonEntity | undefined =

Check failure on line 113 in src/panels/lovelace/cards/hui-picture-entity-card.ts

View workflow job for this annotation

GitHub Actions / Lint and check format

Type 'HassEntity' is not assignable to type 'PersonEntity | ImageEntity | CameraEntity | undefined'.
this.hass.states[this._config.entity];

if (!stateObj) {
return html`
Expand Down

0 comments on commit 86b38ba

Please sign in to comment.