raerae1616
(cajuncoding)
January 24, 2019, 3:48am
21
I was just trying to use my Blink Sensors on my UI to display outside temp, etc… and I noticed mine haven’t updated lately either (in a couple days). So I just restarted and now I’m getting an “error during setup of blink component” error in the log:
Error during setup of component blink
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/homeassistant/setup.py", line 148, in _async_setup_component
component.setup, hass, processed_config) # type: ignore
File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.6/site-packages/homeassistant/components/blink/__init__.py", line 100, in setup
hass.data[BLINK_DATA].start()
File "/usr/local/lib/python3.6/site-packages/blinkpy/blinkpy.py", line 83, in start
sync_module.start()
File "/usr/local/lib/python3.6/site-packages/blinkpy/sync_module.py", line 99, in start
self.videos = self.get_videos()
File "/usr/local/lib/python3.6/site-packages/blinkpy/sync_module.py", line 148, in get_videos
camera_name = entry['camera_name']
TypeError: string indices must be integers
I’m on HassIO with Homeassistant v0.85.1
Anyone else getting this kind of error?
fronzbot
(Kevin Fronczak)
January 24, 2019, 1:11pm
22
Already reported and fixed in 0.86.1
Here’s some links that discuss the issue:
Kudos to @fronzbot for resolving the blink initialization issue so quickly.
Installed 0.86.1 this morning which includes the hotfix and I’m now able to arm / disarm the cameras based on home presence which was my key concern.
opened 04:13AM - 23 Jan 19 UTC
closed 07:37PM - 23 Jan 19 UTC
integration: blink
<!-- READ THIS FIRST:
- If you need additional help with this template please r… efer to https://www.home-assistant.io/help/reporting_issues/
- Make sure you are running the latest version of Home Assistant before reporting an issue: https://github.com/home-assistant/home-assistant/releases
- Frontend issues should be submitted to the home-assistant-polymer repository: https://github.com/home-assistant/home-assistant-polymer/issues
- Do not report issues for components if you are using custom components: files in <config-dir>/custom_components
- This is for bugs only. Feature and enhancement requests should go in our community forum: https://community.home-assistant.io/c/feature-requests
- Provide as many details as possible. Paste logs, configuration sample and code into the backticks. Do not delete any text from this template!
-->
**Home Assistant release with the issue:**
<!--
- Frontend -> Developer tools -> Info
- Or use this command: hass --version
-->
0.85.1
**Last working Home Assistant release (if known):**
**Operating environment (Hass.io/Docker/Windows/etc.):**
<!--
Please provide details about your environment.
-->
Docker
**Component/platform:**
<!--
Please add the link to the documentation at https://www.home-assistant.io/components/ of the component/platform in question.
-->
https://www.home-assistant.io/components/camera.blink/
**Description of problem:**
With no changes to version or configuration, HA is no longer able to set up the blink camera and an "invalid config" notification is displayed on the UI with the message:
> The following components and platforms could not be set up:
> blink
> Please check your config.
I tried upgrading to version 0.85.1 with no fix for the issue. I have a hunch that the Blink API changed.
**Problem-relevant `configuration.yaml` entries and (fill out even if it seems unimportant):**
```yaml
blink:
username: !secret blink_username
password: !secret blink_password
```
**Traceback (if applicable):**
```
Traceback (most recent call last):
File "/usr/src/app/homeassistant/setup.py", line 148, in _async_setup_component
component.setup, hass, processed_config) # type: ignore
File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/app/homeassistant/components/blink/__init__.py", line 100, in setup
hass.data[BLINK_DATA].start()
File "/usr/local/lib/python3.6/site-packages/blinkpy/blinkpy.py", line 83, in start
sync_module.start()
File "/usr/local/lib/python3.6/site-packages/blinkpy/sync_module.py", line 99, in start
self.videos = self.get_videos()
File "/usr/local/lib/python3.6/site-packages/blinkpy/sync_module.py", line 148, in get_videos
camera_name = entry['camera_name']
TypeError: string indices must be integers
```
**Additional information:**
opened 12:14PM - 23 Jan 19 UTC
closed 08:55PM - 26 Jan 19 UTC
bug
help-wanted
blink-api-issue
priority
**Describe the bug**
Video api endpoint changed
**To Reproduce**
Steps to r… eproduce the behavior:
1. Log in
2. Retrieve token and network ids
3. Attempt to get list of videos, platform throws exception and fails
**Expected behavior**
- Be able to extract videos from correct api endpoint
- do not stall platform initialization due to video api endpoint changing
**Home Assistant version (if applicable):** 0.85.1
**`blinkpy` version (not needed if filling out Home Assistant version):** 0.11.1
1 Like