Conversation
tested and fully function (as expected ;))
|
So I totally forgot this, but we already had absences in the So the question: is it useful to fetch absences without having the appointment? |
|
The absence function in appointments is only for that one appointment right? This gives a full array of your absences and as far as I know the absence thingy in appointments is only for the specific appointment🤔 I'll check on this later. Atleast for my use, I would like to retrieve the absences apart from the appointments, but I don't know how other users are using that function right now... Maybe double absences function😝 |
Cant login without ;)
|
Lines 145 to 166 in 545b633 The method that is used right now to fetch absences is the same as your new method so as @lieuwex suggested I would indeed change the old method to use yours. Alternatively you could also opt to not fetch the absence info when fetching appointments and make a method for it in the appointment class. A pro of doing this is that you need less time to fetch appointments because I doubt absence info is used a lot. And if someone needs absence info they can call your method. |
|
Just FYI: I use absence info in my Homey app. But if I need to rewrite my app because of this change I'll do it :) |
tested and fully function (as expected ;))
test:
activity ✓ should fetch activities and parts (335ms)