Fix for epson state not updating (#18357)
* Fixed update method name * Update epson.pypull/18576/head
parent
c1ca7beea1
commit
90f3f2b1e7
|
@ -75,7 +75,7 @@ async def async_setup_platform(
|
|||
if service.service == SERVICE_SELECT_CMODE:
|
||||
cmode = service.data.get(ATTR_CMODE)
|
||||
await device.select_cmode(cmode)
|
||||
await device.update()
|
||||
device.async_schedule_update_ha_state(True)
|
||||
|
||||
epson_schema = MEDIA_PLAYER_SCHEMA.extend({
|
||||
vol.Required(ATTR_CMODE): vol.All(cv.string, vol.Any(*CMODE_LIST_SET))
|
||||
|
@ -102,7 +102,7 @@ class EpsonProjector(MediaPlayerDevice):
|
|||
self._volume = None
|
||||
self._state = None
|
||||
|
||||
async def update(self):
|
||||
async def async_update(self):
|
||||
"""Update state of device."""
|
||||
from epson_projector.const import (
|
||||
EPSON_CODES, POWER, CMODE, CMODE_LIST, SOURCE, VOLUME, BUSY,
|
||||
|
|
Loading…
Reference in New Issue