Skip to content

Commit

Permalink
Fix backend version was not found properly on < 0.108
Browse files Browse the repository at this point in the history
Fix #322
  • Loading branch information
RomRider committed May 5, 2020
1 parent 9ac8ec1 commit fa2f4ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compute_state_display.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const myComputeStateDisplay = (
stateObj: HassEntity,
language: string,
): string | undefined => {
if (!atLeastVersion(hass.connection.haVersion, 0, 109)) {
if (!atLeastVersion(hass.config.version, 0, 109)) {
return legacyComputeStateDisplay(localize, stateObj);
}

Expand Down

0 comments on commit fa2f4ab

Please sign in to comment.