Skip to content

Break up Alexa per functionality#9400

Merged
pvizeli merged 3 commits into
devfrom
break-up-alexa
Sep 12, 2017
Merged

Break up Alexa per functionality#9400
pvizeli merged 3 commits into
devfrom
break-up-alexa

Conversation

@balloob
Copy link
Copy Markdown
Member

@balloob balloob commented Sep 12, 2017

Description:

No functionality change, just a refactor to clean up Alexa code.

Checklist:

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.

Comment thread tests/components/alexa/test_intent.py Outdated
from homeassistant.core import callback
from homeassistant.setup import async_setup_component
from homeassistant.components import alexa
from homeassistant.components.alexa import const, intent
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

'homeassistant.components.alexa.const' imported but unused


req = yield from _flash_briefing_req(alexa_client, "news_audio")
assert req.status == 200
json = yield from req.json()
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

redefinition of unused 'json' from line 4

from homeassistant.core import callback
from homeassistant.setup import async_setup_component
from homeassistant.components import alexa
from homeassistant.components.alexa import const, intent
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

'homeassistant.components.alexa.intent' imported but unused

"""The tests for the Alexa component."""
# pylint: disable=protected-access
import asyncio
import json
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

'json' imported but unused

@pvizeli pvizeli merged commit 05192e6 into dev Sep 12, 2017
@pvizeli pvizeli deleted the break-up-alexa branch September 12, 2017 19:24
@balloob balloob mentioned this pull request Sep 22, 2017
@home-assistant home-assistant locked and limited conversation to collaborators Mar 3, 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