question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Google Maps Integration - Error during setup of component device_tracker

See original GitHub issue

The problem

when i tryed config google maps share location i get error message:

Logger: homeassistant.setup
Source: components/device_tracker/legacy.py:885
First occurred: 13:44:42 (1 occurrences)
Last logged: 13:44:42

Error during setup of component device_tracker
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 235, in _async_setup_component
    result = await task
  File "/usr/src/homeassistant/homeassistant/components/device_tracker/__init__.py", line 50, in async_setup
    await async_setup_legacy_integration(hass, config)
  File "/usr/src/homeassistant/homeassistant/components/device_tracker/legacy.py", line 156, in async_setup_integration
    tracker = await get_tracker(hass, config)
  File "/usr/src/homeassistant/homeassistant/components/device_tracker/legacy.py", line 403, in get_tracker
    devices = await async_load_config(yaml_path, hass, consider_home)
  File "/usr/src/homeassistant/homeassistant/components/device_tracker/legacy.py", line 885, in async_load_config
    device.pop("vendor", None)
TypeError: pop expected at most 1 argument, got 2

What version of Home Assistant Core has the issue?

core-2022.4.7

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Google Maps

Link to integration documentation on our website

https://www.home-assistant.io/integrations/google_maps/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:13

github_iconTop GitHub Comments

6reactions
mvaneijkencommented, Sep 12, 2022

This issue is still present in version 2022.9.2.

0reactions
thor0215commented, Dec 8, 2022

I was having this issue when I first set this up with 2022.12.0 today. I was using the Chrome get_cookies.txt extension. I then tried the Firefox Export_cookies addon. That worked. The difference I see is the Chrome version is adding a lot more cookies in the file. It looks like the google maps device tracker only wants the accounts.google.com and .google.com cookies. I then took my Chrome exported file and parsed it with grep and using sed added the Netscape Cookie header like this:

grep -e ‘^.google.com’ -e ‘^accounts.google.com’ google.com_cookies.txt | sed ‘1i # Netscape HTTP Cookie File\n’ > .google_maps_location_sharing.cookies.location_tracker_gmail_com

Now my google maps device tracker config works.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Platform Legacy Error - Google Maps - Configuration
Hi, I ran a fresh install of Hassio today (0.94.1). ... however I seem to be having issues with the Google Maps Location...
Read more >
Google Maps Platform FAQ
How do I resolve the error: "This IP, site or mobile application is not authorized to use this API key."? How do I...
Read more >
Location and device tracking in Home Assistant - YouTube
With recent spotlight on private/user data being sold by some well known ... https://companion.home-assistant.io/ Google Maps integration : ...
Read more >
4 EASY Presence Detection Setups in Home Assistant
Presence Detection is super important when it comes to Home Automation and Home Assistant in general, they allow you to unlock so much...
Read more >
Track devices in Home Assistant - danimart1991's Blog
Home Assistant has a type of integrations called Device Tracker, ... The integration with Google Maps is based on taking advantage of ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found