Fix for epson state not updating (#18357)

* Fixed update method name

* Update epson.py
pull/18576/head
bw3 2018-11-19 07:47:52 -05:00 committed by Paulus Schoutsen
parent c1ca7beea1
commit 90f3f2b1e7
1 changed files with 2 additions and 2 deletions

View File

@ -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,