mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 19:27:45 +00:00
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
@ -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
|
||||||
|
@ -119,7 +119,7 @@ def do_authentication(hass, config):
|
|||||||
|
|
||||||
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…
x
Reference in New Issue
Block a user