Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion homeassistant/components/media_player/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,7 @@ def entity_picture(self):
@property
def capability_attributes(self):
"""Return capabilitiy attributes."""
supported_features = self.supported_features
supported_features = self.supported_features or 0
data = {}

if supported_features & SUPPORT_SELECT_SOURCE:
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/water_heater/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def precision(self):
@property
def capability_attributes(self):
"""Return capabilitiy attributes."""
supported_features = self.supported_features
supported_features = self.supported_features or 0

data = {
ATTR_MIN_TEMP: show_temp(
Expand Down