mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Prevent Roku doing I/O in event loop (#7969)
This commit is contained in:
parent
c32807803e
commit
8cc759ea4b
@ -125,8 +125,7 @@ class RokuDevice(MediaPlayerDevice):
|
|||||||
"""Return the name of the device."""
|
"""Return the name of the device."""
|
||||||
if self.device_info.userdevicename:
|
if self.device_info.userdevicename:
|
||||||
return self.device_info.userdevicename
|
return self.device_info.userdevicename
|
||||||
else:
|
return "Roku {}".format(self.device_info.sernum)
|
||||||
return "roku_" + self.roku.device_info.sernum
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def state(self):
|
def state(self):
|
||||||
@ -158,8 +157,7 @@ class RokuDevice(MediaPlayerDevice):
|
|||||||
return None
|
return None
|
||||||
elif self.current_app.name == "Roku":
|
elif self.current_app.name == "Roku":
|
||||||
return None
|
return None
|
||||||
else:
|
return MEDIA_TYPE_VIDEO
|
||||||
return MEDIA_TYPE_VIDEO
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def media_image_url(self):
|
def media_image_url(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user