Skip to content
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

SMHI weather component not showing correct values in current forecast #17783

Merged
merged 5 commits into from
Oct 25, 2018
Merged

SMHI weather component not showing correct values in current forecast #17783

merged 5 commits into from
Oct 25, 2018

Conversation

helto4real
Copy link
Contributor

Description:

In some cases the Swedish weather forecast lib not returning correct forecast for the current value

Fix: new lib version 1.0.5

Checklist:

  • [x ] The code change is tested and works locally.
  • [ x] Local tests pass with tox. Your PR cannot be merged unless tests pass

If user exposed functionality or configuration variables are added/changed:

If the code communicates with devices, web services, or third-party tools:

  • [ x] New dependencies have been added to the REQUIREMENTS variable ([example][ex-requir]).
  • [ x] New dependencies are only imported inside functions that use them ([example][ex-import]).
  • [ x] New or updated dependencies have been added to requirements_all.txt by running script/gen_requirements_all.py.
  • New files were added to .coveragerc.

If the code does not interact with devices:

  • Tests have been added to verify that the new code works.

@@ -20,7 +20,7 @@

from .const import DOMAIN, HOME_LOCATION_NAME

REQUIREMENTS = ['smhi-pkg==1.0.4']
REQUIREMENTS = ['smhi-pkg==1.0.5']
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

config flow shouldn't have requirements.

Copy link
Contributor Author

@helto4real helto4real Oct 25, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one is harder since I use the component to validate input. I will have to find another way to do this. But now when I think about it we dont want dependencies here. I will fix it tonight before we release 0.81

@@ -30,7 +30,7 @@
ENTITY_ID_SENSOR_FORMAT, ATTR_SMHI_CLOUDINESS)

DEPENDENCIES = ['smhi']
REQUIREMENTS = ['smhi-pkg==1.0.4']
REQUIREMENTS = ['smhi-pkg==1.0.5']
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

platform shouldn't have requirement, it is done through dependency

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok this one I should just remove

@balloob balloob added this to the 0.81 milestone Oct 25, 2018
@ghost ghost assigned balloob Oct 25, 2018
@balloob balloob merged commit 544a3b9 into home-assistant:dev Oct 25, 2018
@ghost ghost removed the in progress label Oct 25, 2018
balloob pushed a commit that referenced this pull request Oct 26, 2018
…#17783)

* fixes not showing current forecast correctly

* Update config_flow.py

* Update smhi.py

* Update requirements_all.txt

* Update requirements_test_all.txt
@balloob balloob mentioned this pull request Oct 26, 2018
@home-assistant home-assistant locked and limited conversation to collaborators Feb 5, 2019
@ghost ghost removed the platform: weather.smhi label Mar 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants