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

Google assistant climate mode fix #10726

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fixed style errors. (Blank line and line too long)
  • Loading branch information
braddparker committed Nov 21, 2017
commit 1442c14273dae762f638cebf9b5a4c111e617f17
4 changes: 2 additions & 2 deletions homeassistant/components/google_assistant/smart_home.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ def entity_to_device(entity: Entity, units: UnitSystem):

if entity.domain == climate.DOMAIN:
modes = ','.join(
m.lower() for m in entity.attributes.get(climate.ATTR_OPERATION_LIST, [])
m.lower() for m in entity.attributes.get(
climate.ATTR_OPERATION_LIST, [])
if m.lower() in CLIMATE_SUPPORTED_MODES)
device['attributes'] = {
'availableThermostatModes': modes,
Expand Down Expand Up @@ -218,7 +219,6 @@ def determine_service(
Attempt to return a tuple of service and service_data based on the entity
and action requested.
"""

_LOGGER.debug("Handling command %s with data %s", command, params)
domain = entity_id.split('.')[0]
service_data = {ATTR_ENTITY_ID: entity_id} # type: Dict[str, Any]
Expand Down