Skip to content

Fix capability_attributes when supported_features is None#30993

Merged
balloob merged 2 commits into
home-assistant:devfrom
JeffLIrion:patch-34
Jan 20, 2020
Merged

Fix capability_attributes when supported_features is None#30993
balloob merged 2 commits into
home-assistant:devfrom
JeffLIrion:patch-34

Conversation

@JeffLIrion
Copy link
Copy Markdown
Contributor

@JeffLIrion JeffLIrion commented Jan 20, 2020

Description:

If the supported_features property is None, then supported_features & SUPPORT_* will cause an exception. This fixes that issue.

Related issue (if applicable): fixes #30883

Checklist:

  • The code change is tested and works locally.
  • Local tests pass with tox. Your PR cannot be merged unless tests pass
  • There is no commented out code in this PR.
  • I have followed the development checklist

@balloob balloob added this to the 0.104.3 milestone Jan 20, 2020
@balloob balloob merged commit bb37f7b into home-assistant:dev Jan 20, 2020
@balloob
Copy link
Copy Markdown
Member

balloob commented Jan 20, 2020

Thanks!

frenck pushed a commit that referenced this pull request Jan 21, 2020
* Fix capability_attributes when supported_features is None (water_heater)

* Fix capability_attributes when supported_features is None (media_player)
@frenck frenck mentioned this pull request Jan 21, 2020
@lock lock Bot locked and limited conversation to collaborators Jan 24, 2020
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.

No state available for media_player.spotify after update to 0.104.0

4 participants