Fix calendar authentication text, and handle calendar events without summaries. (#6337)
* Fixed google authorization text * Let calendar handle events without a summarypull/6360/head
parent
72fe50bef6
commit
8743f23f13
|
@ -155,7 +155,7 @@ class CalendarEventDevice(Entity):
|
|||
start = _get_date(self.data.event['start'])
|
||||
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
|
||||
# time is HH:MM or MM
|
||||
|
|
|
@ -118,8 +118,8 @@ def do_authentication(hass, config):
|
|||
return False
|
||||
|
||||
persistent_notification.create(
|
||||
hass, 'In order to authorize Home-Assistant to view your calendars'
|
||||
'You must visit: <a href="{}" target="_blank">{}</a> and enter'
|
||||
hass, 'In order to authorize Home-Assistant to view your calendars '
|
||||
'you must visit: <a href="{}" target="_blank">{}</a> and enter '
|
||||
'code: {}'.format(dev_flow.verification_url,
|
||||
dev_flow.verification_url,
|
||||
dev_flow.user_code),
|
||||
|
|
Loading…
Reference in New Issue