GithubHelp home page GithubHelp logo

hass-ticktick's Introduction

'ello

I build software around Identity and SSO, and also other things sometimes.

I mainly work on authentik, an IDP focused on being easy to use and flexible, and also make a couple tools to test Identity protocols:

Also for some reason I decided to make my own DHCP and DNS Server, Gravity.

I also like to use a lot of IaC workflows for my lab, like infrastructure with Ansible/Puppet/Terraform and k8s with Flux.

hass-ticktick's People

Contributors

beryju avatar dependabot-preview[bot] avatar dependabot[bot] avatar dwoosnam avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

hass-ticktick's Issues

Trouble with setup/configuration

Hi There!

When I install this integration with HACS, I don't see any ticktick service or components appear. Maybe I'm doing something wrong?

Thanks!

How to setup

I can't find this in HACS, how do I install this integration?
image

Setting a due_date with a + does not work

It appears that the value pulled from call.data.get("due_date", "") is coming back as an int and therefore the startswith method does not exist.

[2797517984] Error handling message: Unknown error

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 25, in _handle_async_response
    await func(hass, connection, msg)
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 525, in handle_execute_script
    await script_obj.async_run(msg.get("variables"), context=context)
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1216, in async_run
    await asyncio.shield(run.async_run())
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 350, in async_run
    await self._async_step(log_exceptions=False)
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 368, in _async_step
    await getattr(self, handler)()
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 568, in _async_call_service_step
    await service_task
  File "/usr/src/homeassistant/homeassistant/core.py", line 1491, in async_call
    task.result()
  File "/usr/src/homeassistant/homeassistant/core.py", line 1530, in _execute_service
    await self._hass.async_add_executor_job(handler.job.target, service_call)
  File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/ticktick/__init__.py", line 26, in handler
    if due_date_raw.startswith("+"):
AttributeError: 'int' object has no attribute 'startswith'

No Time Set With "due_date: 123m"

The due_date function sets a date, but no longer sets a time. I've tried several variations of setting the due_date. I can get a date set, but not a time (which I hope will trigger a reminder). The example in the readme results in a task due today, but without a time 123 minutes from now, or reminder set:

service: ticktick.add_task data: title: test due_date: 123m

Integration not loading due to missing version in manifest.

Recently this integration stopped loading, below is the error message that is being thrown by Home Assistant:

2021-05-23 13:50:16 ERROR (MainThread) [homeassistant.loader] No 'version' key in the manifest file for custom integration 'ticktick'. As of Home Assistant 2021.6, this integration will no longer be loaded. Please report this to the maintainer of 'ticktick'

"Failed to setup" Error

I've been getting a "Failed to setup" error with this integration for a while now:

Screen Shot 2021-06-22 at 5 20 09 PM

When I check the logs, here's what I get which appears to be some sort of I/O error:

Logger: homeassistant.config_entries
Source: util/async_.py:140
First occurred: 10:14:34 AM (1 occurrences)
Last logged: 10:14:34 AM

Error setting up entry TickTick for ticktick
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 293, in async_setup
    result = await component.async_setup_entry(hass, self)  # type: ignore
  File "/config/custom_components/ticktick/__init__.py", line 62, in async_setup_entry
    client.login(entry.data.get("username"), entry.data.get("password"))
  File "/config/custom_components/ticktick/api.py", line 21, in login
    resp = self._session.post(
  File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 590, in post
    return self.request('POST', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 439, in send
    resp = conn.urlopen(
  File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 699, in urlopen
    httplib_response = self._make_request(
  File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/local/lib/python3.8/http/client.py", line 1252, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/local/lib/python3.8/http/client.py", line 1263, in _send_request
    self.putrequest(method, url, **skips)
  File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 214, in putrequest
    return _HTTPConnection.putrequest(self, method, url, *args, **kwargs)
  File "/usr/src/homeassistant/homeassistant/util/async_.py", line 151, in protected_loop_func
    check_loop()
  File "/usr/src/homeassistant/homeassistant/util/async_.py", line 140, in check_loop
    raise RuntimeError(
RuntimeError: I/O must be done in the executor; Use `await hass.async_add_executor_job()` at custom_components/ticktick/api.py, line 21: resp = self._session.post(

Cannot Authenticate to TickTick

Hi there, recently this integration stopped working for me and will no longer authenticate. My username and password for TickTick haven't changed, so I'm wondering if TickTick changed something on their side that's breaking authentication?

Integration Setup Failed in 2022.2

Hi, TickTick is not starting up and the log shows the following messages:

Logger: homeassistant.setup
Source: setup.py:162
First occurred: 11:53:19 AM (1 occurrences)
Last logged: 11:53:19 AM

Setup failed for custom integration ticktick: Requirements for ticktick not found: ['requests==2.22.0'].


Logger: homeassistant.util.package
Source: util/package.py:99
First occurred: 11:53:08 AM (3 occurrences)
Last logged: 11:53:19 AM

Unable to install package requests==2.22.0: ERROR: Cannot install requests==2.22.0 because these package versions have conflicting dependencies. ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts WARNING: You are using pip version 22.0.3; however, version 22.0.4 is available. You should consider upgrading via the '/usr/local/bin/python3 -m pip install --upgrade pip' command.

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.