Closed ymatsiuk closed 1 year ago
Actually not providing the country in config doesn't result in country being None
. It is automatically discovered here.
Is there anything more in your logs?
Actually not providing the country in config doesn't result in country being None. It is automatically discovered here.
Could you point me out to exact place in the function you refer to where it sets the country
? As per my understanding if we pass country
as None
to this function it returns None
. I might be wrong though, since I'm not familiar with the code and spent like 5min to read it through (just quickly searched for country
in the code π)
Is there anything more in your logs?
What do you mean? Could you be more specific about your expectations? π
Some context: I noticed the error in the custom component and set logging to DEBUG
for only one component, so now instead of just one error line I see 5 additional DEBUG
statements and ERROR
in the end. If you wanted to suggest exact logging settings, I could set those up if that helps you understand the nature of the issue.
Could you point me out to exact place in the function you refer to where it sets the
country
?
It is retrieved here, if it is None
error is returned here (it's not possible for model to be not None
and country
to be None
).
What do you mean? Could you be more specific about your expectations? π
Well, you haven't specified any specific problem. Is map still available? Or is it available only when you provide country
? Or have it stopped working at all?
Well, you haven't specified any specific problem. Is map still available? Or is it available only when you provide country? Or have it stopped working at all?
Apologies for not making it clear. I've just recently discovered this customization. The map was not working until I added country
into the config. I'm trying to reproduce the issue again with some additional debug. Will keep you posted.
It works now π€ I'll do a clean install to understand what actually happened and why I can't re-produce it now. Meanwhile I'm closing this. Apologies for the inconvenience and thanks for the help! Have a great day!
Checklist
The problem
Using recommended configuration doesn't work anymore:
Digging deeper I suspect this is the root cause since the
country
is missing from either "Basic" or "Recommended" examples. Documentation statescountry
is optional field, that apparently defaults toNone
here. That leads to API URL rendered to something likehttps://.api.io.mi.com/app
What version of an integration has described problem?
master (b4ae1d4bdd8268087cd269c7aeb2207a6dbefb2e)
What was the last working version of an integration?
No response
What vacuum model do you have problems with?
roborock.vacuum.s5e
What version of Home Assistant do you use?
core-2022.12.6
What type of installation are you running?
Home Assistant Core
Camera's configuration
Basic
Recommended
Errors shown in the HA logs (if applicable)
Additional information
No response