Add multi phone numbers support#6605
Conversation
|
It works great with a single instance of the component. When I add multiple Fido sensors, initially some of the accounts give this error: After some time, all accounts do get updated though. |
|
@tanilolli do you have this sometimes or only at startup ? |
|
@titilambert Only at startup |
|
@tanilolli EVERYTIME your start HA ? (Is it reproducible ?) |
|
@titilambert Yes, everytime. It seems the issue is Fido doesn't like the requests being made so fast. |
|
@tanilolli yes I guess,... So I don't know what to do for that :( |
|
@balloob Can we share some data/object between to instance of the same component ? |
|
@titilambert Maybe the component could load all the data for the account and create it's own sensors. sensor.fido could display general account details like balance |
|
@tanilolli good idea, I will try it tomorrow |
|
Ping, any updates? |
|
Sorry, my "tomorrow" is really long :/ |
|
Ready for review ! |
|
Thanks for the update! It's working great with all 3 numbers in my account. |
There was a problem hiding this comment.
You can only use if self.fido_data.data.get(self.type): that replace this two lines.
There was a problem hiding this comment.
continuation line with same indent as next logical line
|
Fixed ! |
Description:
As @tanilolli requested (here #5997), this PR add the multi phone number support.
Please don't merge this PR. I'm waiting for @tanilolli confirmation for cleaning.
@tanilolli Could you confirm that this patch is working for you ?
Related issue (if applicable): fixes #5997
Pull request in home-assistant.github.io with documentation (if applicable): home-assistant/home-assistant.io#2256
Example entry for
configuration.yaml(if applicable):Checklist:
toxrun successfully. Your PR cannot be merged unless tests passREQUIREMENTSvariable (example).requirements_all.txtby runningscript/gen_requirements_all.py..coveragerc.