Roku Component - "Unable to initialize..." - HAAS 0.38

Running HA gives me “Unable to initialize roku at 192…”.

I dug around a little. It looks like the roku component is using an updated python-roku version and also uses a different way to ‘name’ the device.

The name property is this:

@property
def name(self):
    """Return the name of the device."""
    return self.device_info.userdevicename

I’ve never configured a user defined name for my Roku. So, the /query/device-info is returning:

<user-device-name/>

So, when the ‘name’ is checked here - it returns ‘None’:

rokus = []
for host in hosts:
    new_roku = RokuDevice(host)

    if new_roku.name is None:
        _LOGGER.error("Unable to initialize roku at %s", host)
    else:
        rokus.append(RokuDevice(host))
        KNOWN_HOSTS.append(host)

Please let me know if I’m missing something. Otherwise I will enter an Issue later tonight or tomorrow.