Fix calendar authentication text, and handle calendar events without summaries. (#6337)
* Fixed google authorization text * Let calendar handle events without a summary
This commit is contained in:
parent
72fe50bef6
commit
8743f23f13
2 changed files with 3 additions and 3 deletions
|
@ -155,7 +155,7 @@ class CalendarEventDevice(Entity):
|
||||||
start = _get_date(self.data.event['start'])
|
start = _get_date(self.data.event['start'])
|
||||||
end = _get_date(self.data.event['end'])
|
end = _get_date(self.data.event['end'])
|
||||||
|
|
||||||
summary = self.data.event['summary']
|
summary = self.data.event.get('summary', '')
|
||||||
|
|
||||||
# check if we have an offset tag in the message
|
# check if we have an offset tag in the message
|
||||||
# time is HH:MM or MM
|
# time is HH:MM or MM
|
||||||
|
|
|
@ -118,8 +118,8 @@ def do_authentication(hass, config):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
persistent_notification.create(
|
persistent_notification.create(
|
||||||
hass, 'In order to authorize Home-Assistant to view your calendars'
|
hass, 'In order to authorize Home-Assistant to view your calendars '
|
||||||
'You must visit: <a href="{}" target="_blank">{}</a> and enter'
|
'you must visit: <a href="{}" target="_blank">{}</a> and enter '
|
||||||
'code: {}'.format(dev_flow.verification_url,
|
'code: {}'.format(dev_flow.verification_url,
|
||||||
dev_flow.verification_url,
|
dev_flow.verification_url,
|
||||||
dev_flow.user_code),
|
dev_flow.user_code),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue