mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
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:
committed by
Paulus Schoutsen
parent
eefb9406c2
commit
b5725f8f19
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user