Skip to content

Commit

Permalink
Fix for epson state not updating (#18357)
Browse files Browse the repository at this point in the history
* Fixed update method name

* Update epson.py
  • Loading branch information
bw3 authored and balloob committed Nov 19, 2018
1 parent c1ca7be commit 90f3f2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions homeassistant/components/media_player/epson.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ async def async_service_handler(service):
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))
Expand All @@ -102,7 +102,7 @@ def __init__(self, websession, name, host, port, encryption):
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,
Expand Down

0 comments on commit 90f3f2b

Please sign in to comment.