-
Notifications
You must be signed in to change notification settings - Fork 175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add list of supported languages #339
Comments
Thanks, will do. |
Thanks, looking forward to that!
|
@csparpa that was quick 😃 |
Yes you can, the constant is in module
https://github.com/csparpa/pyowm/blob/develop/pyowm/constants.py
Just import that with:
`from pyowm.constants import LANGUAGES`
…On Wed, Sep 23, 2020, 19:28 Tomasz ***@***.***> wrote:
@csparpa <https://github.com/csparpa> that was quick 😃
can I use that const without creating an OWM instance?
I need to get a list of supported languages before I create owm.
Sorry for a newbie question but I'm new to Pyhon.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#339 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABHOXXVJFWS25HHGUUR6RF3SHIV47ANCNFSM4RWVIFQQ>
.
|
@csparpa thank you 👍 |
Currently, in Home Assisnatt the list of supported languages is added to Home Assistant, but as suggested by one of the contributors, ideally it should be added to your package.
My recent PR is adding the whole list of languages from OWM website.
Consider adding this as a const.
The text was updated successfully, but these errors were encountered: