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:
parent
ee04473e85
commit
a67b598971
5 changed files with 20 additions and 23 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue