Fix calendar authentication text, and handle calendar events without summaries. (#6337)

* Fixed google authorization text

* Let calendar handle events without a summary
pull/6360/head
Alan Fischer 2017-03-02 01:22:38 -07:00 committed by Paulus Schoutsen
parent 72fe50bef6
commit 8743f23f13
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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),