Giter Site home page Giter Site logo

Comments (6)

itchannel avatar itchannel commented on May 26, 2024

Can you please check your Home Assistant log and let me know if you have any errors from the fordpass Integration

from fordpass-ha.

pbnj4640 avatar pbnj4640 commented on May 26, 2024

Yes I am. My car (I guess) doesn't support GPS?

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 316, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 507, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 531, in add_to_platform_finish
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 296, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 320, in _async_write_ha_state
sstate = self.state
File "/config/custom_components/fordpass/sensor.py", line 199, in state
return self.get_value("state")
File "/config/custom_components/fordpass/sensor.py", line 51, in get_value
return self.coordinator.data[self.sensor]["gpsState"]
TypeError: 'NoneType' object is not subscriptable

from fordpass-ha.

pbnj4640 avatar pbnj4640 commented on May 26, 2024

Also device tracker

Error adding entities for domain device_tracker with platform fordpass
Error while setting up fordpass platform for device_tracker
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 316, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 507, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 531, in add_to_platform_finish
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 296, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 320, in _async_write_ha_state
sstate = self.state
File "/usr/src/homeassistant/homeassistant/components/device_tracker/config_entry.py", line 103, in state
if self.latitude is not None:
File "/config/custom_components/fordpass/device_tracker.py", line 28, in latitude
return float(self.coordinator.data[self.sensor]["latitude"])
TypeError: 'NoneType' object is not subscriptable

from fordpass-ha.

itchannel avatar itchannel commented on May 26, 2024

Looks like it. Will add in a check to mark the sensor as unavailable in the next release.

from fordpass-ha.

itchannel avatar itchannel commented on May 26, 2024

I have fixed the two above errors so it now checks to see if your car supports GPS before adding the tracker entity. Let me know if this doesn't fix the odometer issue but hoping now the tracker issue is resolved the script should be fine.

from fordpass-ha.

pbnj4640 avatar pbnj4640 commented on May 26, 2024

This solved it! Thanks

from fordpass-ha.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.