JonasJoKuJonas / homeassistant-WebUntis

Custom component to access data from Web Untis in Home Assistant
https://community.home-assistant.io/t/webuntis-timetable-in-ha/568273
MIT License
52 stars 12 forks source link

add Room as Location in Calendarevent #35

Closed ioT-enthusiast closed 1 year ago

ioT-enthusiast commented 1 year ago

This line adds the Room as location in the event. Helpful to display the room in calendar, atomic revive etc.

JonasJoKuJonas commented 1 year ago

Thank you for your work! I appreciate your help. I see you accidentally tried to change the long name, but don't worry I'll add a function to be able to select it.

Why do you changed the long name in the get_lesson_json function? Do you get an error if you leave it?

ioT-enthusiast commented 1 year ago

That change should not be included in this pull request. It is just a workaround as my school puts just numbers in the long_name field of the lesson and so I just use the 'name' field for the message of the event (see https://github.com/JonasJoKuJonas/homeassistant-WebUntis/issues/27) . Not related to this location entry in this pull request.