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

'datetime.date' object has no attribute 'date' #28

Closed
JonGilmore opened this issue Feb 17, 2020 · 2 comments
Closed

'datetime.date' object has no attribute 'date' #28

JonGilmore opened this issue Feb 17, 2020 · 2 comments

Comments

@JonGilmore
Copy link

Getting the following exception in my logs for a person who just had a birthday yesterday.

2020-02-17 08:55:31 ERROR (MainThread) [homeassistant.helpers.entity] Update for sensor.redacteds_birthday fails
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 279, in async_update_ha_state
    await self.async_device_update()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 459, in async_device_update
    await self.async_update()
  File "/config/custom_components/anniversaries/sensor.py", line 104, in async_update
    if today < self._date.date():
AttributeError: 'datetime.date' object has no attribute 'date'

The person's bday is listed in my yaml file as follows:

    - name: redacteds Birthday
      date: "02-16"

Thoughts?

@pinkywafer
Copy link
Owner

I'll look into it when I get chance

@pinkywafer
Copy link
Owner

Ok. Thanks. I've spotted the issue... will fix and release update later

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

2 participants