Skip to content

added more debug logging for sensor.alpha_vantage#12249

Merged
fabaff merged 4 commits intohome-assistant:devfrom
ChristianKuehnel:alpha_vantage_logging
Feb 8, 2018
Merged

added more debug logging for sensor.alpha_vantage#12249
fabaff merged 4 commits intohome-assistant:devfrom
ChristianKuehnel:alpha_vantage_logging

Conversation

@ChristianKuehnel
Copy link
Copy Markdown
Contributor

Description:

I added more debug logging statements to sensor.alpha_vantage to be able to debug issues in the field.

Related issue (if applicable): N/A

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

Example entry for configuration.yaml (if applicable):

no changes

Checklist:

  • The code change is tested and works locally.

If the code does not interact with devices:

  • Local tests with tox run successfully. Your PR cannot be merged unless tests pass
  • Tests have been added to verify that the new code works.

dev.append(AlphaVantageForeignExchange(forex, conversion))

add_devices(dev, True)
_LOGGER.debug('setup complated')
Copy link
Copy Markdown
Contributor

@arsaboo arsaboo Feb 8, 2018

Choose a reason for hiding this comment

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

typo Setup completed.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done


def update(self):
"""Get the latest data and updates the states."""
_LOGGER.debug('requesting new data for symbol %s', self._symbol)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can you capitalize the first letter in all the comments.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done

dev = []
for symbol in symbols:
try:
_LOGGER.debug('Configuring timeseries for symbols: %s',
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.

As per the development guidelines:

Use single quotes ' for single word and " for multiple words or sentences.

Copy link
Copy Markdown
Member

@fabaff fabaff left a comment

Choose a reason for hiding this comment

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

🐦

@fabaff fabaff merged commit b082943 into home-assistant:dev Feb 8, 2018
@ChristianKuehnel ChristianKuehnel deleted the alpha_vantage_logging branch February 8, 2018 23:15
@balloob balloob mentioned this pull request Feb 9, 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