Fix supported features gates in media_player volume up/down services (#23419)
* Correct media player feature gates * Fix failing test * Lint...
This commit is contained in:
parent
eefb9406c2
commit
b5725f8f19
4 changed files with 42 additions and 24 deletions
|
@ -280,7 +280,7 @@ async def test_call_with_required_features(hass, mock_entities):
|
|||
Mock(entities=mock_entities)
|
||||
], test_service_mock, ha.ServiceCall('test_domain', 'test_service', {
|
||||
'entity_id': 'all'
|
||||
}), required_features=1)
|
||||
}), required_features=[1])
|
||||
assert len(mock_entities) == 2
|
||||
# Called once because only one of the entities had the required features
|
||||
assert test_service_mock.call_count == 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue