mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Correct errors found on post merge review in philips_js (#46428)
* Correct missed review changes * Adjust return value for device trigger * Drop cannot connect * Always assume there is a unique id * No need to yield * Update homeassistant/components/philips_js/media_player.py Co-authored-by: Martin Hjelmare <marhje52@gmail.com> * Move typing to init * Adjust typing instead of returning lambda * Explicity return None * Coerce into int Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
@@ -50,7 +50,7 @@ async def mock_entity(hass, mock_device_reg, mock_config_entry):
|
||||
"""Get standard player."""
|
||||
assert await hass.config_entries.async_setup(mock_config_entry.entry_id)
|
||||
await hass.async_block_till_done()
|
||||
yield MOCK_ENTITY_ID
|
||||
return MOCK_ENTITY_ID
|
||||
|
||||
|
||||
@fixture
|
||||
|
||||
Reference in New Issue
Block a user