andig / fritzapi

Home automation API for Fritz!Box, Fritz!DECT and FRITZ!Powerline devices
MIT License
140 stars 27 forks source link

getSID fails at first call #33

Closed lavolp3 closed 4 years ago

lavolp3 commented 4 years ago
    getSID: function() {
        return this.sid;
    },

This provides an empty SID if this.call()has not been called by any of the other functions in the current session. Any call via this.call fills this.sid with the current sid. Only after that, the getSID function is useful

andig commented 4 years ago

Why do you think that's a problem? With empty sid, api call will fail as expected.

lavolp3 commented 4 years ago

I thought this was not intended but understand it is. Will close this.