Skip to content

Add Dark Sky weather component#11435

Merged
balloob merged 1 commit into
home-assistant:devfrom
DanNixon:darksky_weather
Jan 7, 2018
Merged

Add Dark Sky weather component#11435
balloob merged 1 commit into
home-assistant:devfrom
DanNixon:darksky_weather

Conversation

@DanNixon
Copy link
Copy Markdown
Contributor

@DanNixon DanNixon commented Jan 3, 2018

Description:

Adds weather component that pulls data from Dark Sky.

Pull request in home-assistant.github.io with documentation (if applicable): home-assistant/home-assistant.io#4333

Example entry for configuration.yaml (if applicable):

weather:
  - platform: darksky
    api_key: !secret darksky_api_key
    units: 'uk2'

Checklist:

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

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

  • Local tests with tox run successfully. Your PR cannot be merged unless tests pass
  • New dependencies have been added to the REQUIREMENTS variable (example).
  • New dependencies are only imported inside functions that use them (example).
  • New dependencies have been added to requirements_all.txt by running script/gen_requirements_all.py.
  • New files were added to .coveragerc.

@balloob
Copy link
Copy Markdown
Member

balloob commented Jan 7, 2018

Awesome, thanks! 🌮 🐬

@balloob balloob merged commit 3cbd77f into home-assistant:dev Jan 7, 2018
Copy link
Copy Markdown
Member

@MartinHjelmare MartinHjelmare left a comment

Choose a reason for hiding this comment

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

Looks great! Two comments.

return self._ds_daily.summary

@property
def state_attributes(self):
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

You should not overwrite this but implement device_state_attributes. Those will update the state attributes in the entity base class.

Patform for retrieving meteorological data from Dark Sky.

For more details about this platform, please refer to the documentation
https://home-assistant.io/components/
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Stale URL.

@DanNixon DanNixon deleted the darksky_weather branch January 7, 2018 22:37
@DanNixon
Copy link
Copy Markdown
Contributor Author

DanNixon commented Jan 7, 2018

@MartinHjelmare I've opened #11520 to address your comments.

@balloob balloob mentioned this pull request Jan 11, 2018
@home-assistant home-assistant locked and limited conversation to collaborators May 29, 2018
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.

5 participants