Skip to content
This repository has been archived by the owner on Sep 18, 2020. It is now read-only.

Commit

Permalink
fixed location event error
Browse files Browse the repository at this point in the history
  • Loading branch information
ljmerza committed Dec 26, 2018
1 parent 6c36d15 commit d6f0d99
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ In your ui-lovelace.yaml
resources:
- url: https://unpkg.com/[email protected]/moment.js
type: js
- url: /local/calendar-card/calendar-card.js?v=1.2.1
- url: /local/calendar-card/calendar-card.js?v=1.2.2
type: module
```

Expand Down
2 changes: 1 addition & 1 deletion calendar-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ class CalendarCard extends HTMLElement {
<ha-icon icon="mdi:map-marker"></ha-icon>&nbsp;`
}

if (event.location && locationAddress) {
if (event.location && event.locationAddress) {
locationHtml += `
<a href="https://www.google.com/maps/place/${event.locationAddress}" target="_blank">
${event.location}
Expand Down
4 changes: 2 additions & 2 deletions custom_updater.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"calendar-card": {
"updated_at": "2018-12-13",
"version": "1.2.1",
"updated_at": "2018-12-26",
"version": "1.2.2",
"remote_location": "https://raw.githubusercontent.com/ljmerza/calendar-card/master/calendar-card.js",
"visit_repo": "https://github.com/ljmerza/calendar-card",
"changelog": "https://github.com/ljmerza/calendar-card/releases/latest"
Expand Down

0 comments on commit d6f0d99

Please sign in to comment.