def get_calendar_info(hass, calendar):
 calendar_info = DEVICE_SCHEMA({CONF_CAL_ID: calendar['id'], CONF_ENTITIES: [{CONF_TRACK: calendar['track'], CONF_NAME: calendar['summary'], CONF_DEVICE_ID: generate_entity_id('{}', calendar['summary'], hass=hass)}]})
 return calendar_info

def get_calendar_info ( hass , calendar ) : calendar_info = DEVICE_SCHEMA ( { CONF_CAL_ID : calendar [ 'id' ] , CONF_ENTITIES : [ { CONF_TRACK : calendar [ 'track' ] , CONF_NAME : calendar [ 'summary' ] , CONF_DEVICE_ID : generate_entity_id ( '{}' , calendar [ 'summary' ] , hass = hass ) } ] } ) return calendar_info
convert data from google into device_schema .