TimeTree Component

Hey there,
I just wrote a simple TimeTree Component for me and my Wife.
Don´t expect it to be perfect, but for us, it works.

Kind Regards,
Micha

5 Likes

Micha,

I used your instructions but for some reason home assistant is throwing the following error:

Configuration Invalid
Platform error calendar.timetree - integration “timetree” not found.

I also get a message in my Log,

Logger: homeassistant.helpers.entity
Source: helpers/entity.py:601
First occurred: 2:26:26 PM (2 occurrences)
Last logged: 2:26:27 PM

* Entity calendar.family (<class 'custom_components.timetree.calendar.EntitiesCalendarDevice'>) implements device_state_attributes. Please report it to the custom component author.
* Entity calendar.family_2 (<class 'custom_components.timetree.calendar.EntitiesCalendarDevice'>) implements device_state_attributes. Please report it to the custom component author.

Found out that device_state_attributes is deprecated and is replaced with extra_state_attributes

Got this Proplem now:

Logger: aiohttp.server
Source: components/calendar/__init__.py:274
First occurred: 2. Dezember 2022 um 13:53:19 (4 occurrences)
Last logged: 17:39:44

Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request
    resp = await request_handler(request)
  File "/usr/local/lib/python3.10/site-packages/aiohttp/web_app.py", line 504, in _handle
    resp = await handler(request)
  File "/usr/local/lib/python3.10/site-packages/aiohttp/web_middlewares.py", line 117, in impl
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 100, in forwarded_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 82, in ban_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 236, in auth_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 136, in handle
    result = await result
  File "/usr/src/homeassistant/homeassistant/components/calendar/__init__.py", line 273, in get
    [
  File "/usr/src/homeassistant/homeassistant/components/calendar/__init__.py", line 274, in <listcomp>
    dataclasses.asdict(event, dict_factory=_api_event_dict_factory)
  File "/usr/local/lib/python3.10/dataclasses.py", line 1238, in asdict
    raise TypeError("asdict() should be called on dataclass instances")
TypeError: asdict() should be called on dataclass instances

what can i do?

I’ve the same problem. Could you resolve it?

it’s end the timetree API.