Google_assistant errors on sync

I just updated to the latest version 0.92.1 and anytime I ask my google home to “sync my devices” to update them with a few new devices I get the following errors. Does anyone else have this issue or a solution?

2019-04-28 13:43:57 ERROR (MainThread) [homeassistant.components.google_assistant.smart_home] Unexpected error
Traceback (most recent call last):
  File "/home/username/homeassistant/lib/python3.6/site-packages/homeassistant/components/google_assistant/", line 55, in _process
    result = await handler(hass, data, inputs[0].get('payload'))
  File "/home/username/homeassistant/lib/python3.6/site-packages/homeassistant/components/google_assistant/", line 93, in async_devices_sync
    serialized = await entity.sync_serialize()
  File "/home/username/homeassistant/lib/python3.6/site-packages/homeassistant/components/google_assistant/", line 100, in sync_serialize
    traits = self.traits()
  File "/home/username/homeassistant/lib/python3.6/site-packages/homeassistant/components/google_assistant/", line 74, in traits
    for Trait in trait.TRAITS
  File "/home/username/homeassistant/lib/python3.6/site-packages/homeassistant/components/google_assistant/", line 75, in <listcomp>
    if Trait.supported(domain, features, device_class)]
  File "/home/username/homeassistant/lib/python3.6/site-packages/homeassistant/components/google_assistant/", line 143, in supported
    return features & light.SUPPORT_BRIGHTNESS
TypeError: unsupported operand type(s) for &: 'str' and 'int'
2019-04-28 13:43:57 ERROR (MainThread) [homeassistant.components.google_assistant.smart_home] Error handling message {'inputs': [{'intent': 'action.devices.SYNC'}], 'requestId': '6867976445930979872'}: {'errorCode': 'unknownError'}

Shortly after posting this I located the problem.


line 70:

features = state.attributes.get(ATTR_SUPPORTED_FEATURES, 0)

appears to return a string but needs an integer. So you seem to be able to fix it by changing that line to:

features = int(state.attributes.get(ATTR_SUPPORTED_FEATURES, 0))

Good catch. Have you submitted an issue?

Just tried a sync via a service call. No error…