Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: can only concatenate str (not "NoneType") to str #61

Closed
teankum opened this issue Nov 18, 2019 · 13 comments
Closed

TypeError: can only concatenate str (not "NoneType") to str #61

teankum opened this issue Nov 18, 2019 · 13 comments

Comments

@teankum
Copy link

teankum commented Nov 18, 2019

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 150, in _async_setup_platform
await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
return fut.result()
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/wyzesense/binary_sensor.py", line 57, in setup_platform
_LOGGER.debug("Attempting to open connection to hub at " + config[CONF_DEVICE])
TypeError: can only concatenate str (not "NoneType") to str

@teankum
Copy link
Author

teankum commented Nov 19, 2019

@Nighteyez07
Copy link

I've been getting this same issue
Hassio on top of Ubuntu
Installed this via the latest version of HACS. I'll pull specific versions of everything when I get back home.

@teankum
Copy link
Author

teankum commented Nov 19, 2019

That's the setup I have as well. Hopefully it can get resolved soon.

@Nighteyez07
Copy link

@teankum I got it working, with the following steps

  1. Implemented the code changes from this pending PR Added the ability to auto configure hidraw device #44
  2. Remove the device: "" for the wyzesense platform under binary sensor in your configuration.yml
  3. Unplug and plug back in the Wyze Bridge
  4. Restart Home Assistant and check the logs

@Nighteyez07
Copy link

This issue was causing my HA instance to basically not work at all, once I got it resolved my HA is now super responsive once again.

@teankum
Copy link
Author

teankum commented Nov 20, 2019

@Nighteyez07 Did you put the following in your configuration file?

  • platform: wyzesense
    device: auto

I already had that in my code. Also, are you using the standard binary file or are you using

https://github.com/kevinvincent/ha-wyzesense/blob/cb84cf822d49cee9fc3cb1386bb43e66bb28f17b/custom_components/wyzesense/binary_sensor.py

@Nighteyez07
Copy link

I was using the standard binary installed directly from HACS, but I manually edited the binary_sensor.py with the edits in the PR. Then edited my configuration to completely remove the device: auto line from the wyzesense platform.
- platform: wyzsense

@teankum
Copy link
Author

teankum commented Nov 21, 2019

@Nighteyez07 I changed the configuration file to
binary_sensor:

  • platform: wyzesense

I am still getting the error. Is your binary file the same as this?

https://github.com/kevinvincent/ha-wyzesense/blob/cb84cf822d49cee9fc3cb1386bb43e66bb28f17b/custom_components/wyzesense/binary_sensor.py

@teankum
Copy link
Author

teankum commented Nov 23, 2019

@kevinvincent Do you have a fix for this?

@kevinvincent
Copy link
Owner

kevinvincent commented Nov 26, 2019

Yes, please update via HACS and set device: "auto" in your config.

@dnaphreak
Copy link

Had this same issue using Hassio on top of Debian after updating to version 0.0.6 via HACS.
These are the steps that got it working again.

  1. Set device: "auto" in config
  2. Unplug and replug Wyze Bridge
  3. Restart HA instance

@jchuck5612
Copy link

Using version 0.0.6 - I fixed this issue by moving the Wyze bridge from the camera to my Raspberry Pi.

@kevinvincent
Copy link
Owner

Closing as this has been fixed in 0.0.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants