Skip to content

Correct spelling of aliases, deprecate old config options.#8348

Merged
fabaff merged 3 commits into
home-assistant:devfrom
aequitas:aliases
Jul 6, 2017
Merged

Correct spelling of aliases, deprecate old config options.#8348
fabaff merged 3 commits into
home-assistant:devfrom
aequitas:aliases

Conversation

@aequitas
Copy link
Copy Markdown
Contributor

@aequitas aequitas commented Jul 4, 2017

from homeassistant.const import (
ATTR_UNIT_OF_MEASUREMENT, CONF_NAME, CONF_PLATFORM,
CONF_UNIT_OF_MEASUREMENT)
from homeassistant.helpers.deprecation import get_deprecated
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.helpers.deprecation.get_deprecated' imported but unused

"""Turn the device off."""
return self._async_handle_command("turn_off")

DEPRECATED_CONFIG_OPTIONS = [
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

expected 2 blank lines after class or function definition, found 1

import logging

import async_timeout
import voluptuous as vol
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.

According to PEP8 this position is ok.

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.

Beside the import ordering looks good to me 🐦

@fabaff fabaff merged commit fe6a4b8 into home-assistant:dev Jul 6, 2017
@aequitas aequitas deleted the aliases branch July 6, 2017 16:37
@balloob balloob mentioned this pull request Jul 13, 2017
dethpickle pushed a commit to dethpickle/home-assistant that referenced this pull request Aug 18, 2017
…stant#8348)

* correct spelling of aliases

* add deprecation

* Fix style.
@home-assistant home-assistant locked and limited conversation to collaborators Oct 20, 2017
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