Spofity media player TypeError: unsupported operand type(s) for &: 'NoneType' and 'int'

I’m seeing up Spotify for media player but each time I try to stop/pause I get the following error:

unsupported operand type(s) for &: ‘NoneType’ and ‘int’
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py”, line 134, in handle_call_service
connection.context(msg),
File “/usr/src/homeassistant/homeassistant/core.py”, line 1226, in async_call
await asyncio.shield(self._execute_service(handler, service_call))
File “/usr/src/homeassistant/homeassistant/core.py”, line 1251, in _execute_service
await handler.func(service_call)
File “/usr/src/homeassistant/homeassistant/helpers/entity_component.py”, line 201, in handle_service
self._platforms.values(), func, call, service_name, required_features
File “/usr/src/homeassistant/homeassistant/helpers/service.py”, line 335, in entity_service_call
future.result() # pop exception if have
File “/usr/src/homeassistant/homeassistant/helpers/service.py”, line 350, in _handle_service_platform_call
entity.supported_features & feature_set for feature_set in required_features
File “/usr/src/homeassistant/homeassistant/helpers/service.py”, line 350, in
entity.supported_features & feature_set for feature_set in required_features
TypeError: unsupported operand type(s) for &: ‘NoneType’ and ‘int’

My config for Spotify is :
media_player:

  • platform: spotify
    client_id:
    client_secret:

and my Lovelace config is :
entity: media_player.spotify
type: media-control

Any help?

Hi there!

I’m getting the same error; did you manage to solve it?