Package Details: python-aioesphomeapi 23.1.1-2

Git Clone URL: https://aur.archlinux.org/python-aioesphomeapi.git (read-only, click to copy)
Package Base: python-aioesphomeapi
Description: Python Client for ESPHome native API. Used by Home Assistant.
Upstream URL: https://github.com/esphome/aioesphomeapi
Keywords: ESP32 ESP8266 ESPHome HomeAssistant
Licenses: MIT
Submitter: sgar
Maintainer: sgar (jesserockz, esphome)
Last Packager: sgar
Votes: 4
Popularity: 0.95
First Submitted: 2021-09-16 20:27 (UTC)
Last Updated: 2024-04-09 19:20 (UTC)

Pinned Comments

sgar commented on 2021-11-17 16:16 (UTC)

This package will be kept at the version that is used by esphome. So it might not be always the latest released version but it will work better with esphome.

Latest Comments

potatoattack commented on 2024-04-09 01:09 (UTC) (edited on 2024-04-09 01:14 (UTC) by potatoattack)

Missing dep python-async_interrupt. No package existed so I created it.

gustl64 commented on 2024-01-15 12:21 (UTC)

seems to be a new dependency -- see requirement.txt:

aiohappyeyeballs>=2.3.0

gustl64 commented on 2024-01-14 08:37 (UTC) (edited on 2024-01-14 08:38 (UTC) by gustl64)

this version breaks the logs command of esphome 2023.12.5 :

>  esphome logs AAA.yaml

INFO ESPHome 2023.12.5
INFO Reading configuration sauna.yaml...
  Traceback (most recent call last):
   File "/usr/bin/esphome", line 33, in <module>
    sys.exit(load_entry_point('esphome==2023.12.5', 'console_scripts', 'esphome')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/esphome/__main__.py", line 1041, in main
    return run_esphome(sys.argv)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/esphome/__main__.py", line 1028, in run_esphome
    rc = POST_CONFIG_ACTIONS[args.command](args, config)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/esphome/__main__.py", line 454, in command_logs
    return show_logs(config, args, port)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/esphome/__main__.py", line 356, in show_logs
    from esphome.components.api.client import run_logs
  File "/usr/lib/python3.11/site-packages/esphome/components/api/client.py", line 8, in <module>
    from aioesphomeapi import APIClient
  File "/usr/lib/python3.11/site-packages/aioesphomeapi/__init__.py", line 7, in <module>
    from .client import APIClient
  File "/usr/lib/python3.11/site-packages/aioesphomeapi/client.py", line 84, in <module>
    from .connection import APIConnection, ConnectionParams, handle_timeout
  File "aioesphomeapi/connection.py", line 18, in init aioesphomeapi.connection
ModuleNotFoundError: No module named 'aiohappyeyeballs'

naund commented on 2023-11-23 18:30 (UTC) (edited on 2023-11-24 10:53 (UTC) by naund)

Hallo @sgar,

A dependency is missing: chacha20poly1305_reuseable. For me this one is working:

pkgname=python-chacha20poly1305-reuseable
pkgver=0.11.0
pkgrel=1
pkgdesc="ChaCha20Poly1305 that is reuseable for asyncio"
url="https://github.com/bdraco/chacha20poly1305-reuseable"
depends=('python-cryptography')
makedepends=('python-setuptools')
license=('Apache-2.0')
arch=('any')
source=("https://github.com/bdraco/chacha20poly1305-reuseable/releases/download/v${pkgver}/chacha20poly1305_reuseable-${pkgver}.tar.gz")
sha256sums=('c0c41359ada2e967f81ad000d2a1ba0b1d5fb7dcd010b2f12d20a87ecf1e59ab')
build() {
    cd "$srcdir/chacha20poly1305_reuseable-${pkgver}"
    python setup.py build
}
package() {
    cd "$srcdir/chacha20poly1305_reuseable-${pkgver}"
    python setup.py install --root="$pkgdir" --optimize=1 --skip-build
}

leander091 commented on 2023-04-20 18:45 (UTC)

Hi @sgar,

Version 2023.4.0 of ESPHome needs a new version of this dep. I've compiled my own version like this:

diff --unified --recursive --text PKGBUILD PKGBUILD.new
--- PKGBUILD    2023-04-20 20:34:22.572389305 +0200
+++ PKGBUILD.new        2023-04-20 20:34:14.445722690 +0200
@@ -1,7 +1,7 @@
 # Mantainer: sgar < swhaat at github >

 pkgname=python-aioesphomeapi
-pkgver=13.5.0
+pkgver=13.7.0
 pkgrel=1
 pkgdesc="Python Client for ESPHome native API. Used by Home Assistant."
 url="https://github.com/esphome/aioesphomeapi"
@@ -13,7 +13,7 @@
 license=('MIT')
 arch=('any')
 source=("https://github.com/esphome/aioesphomeapi/archive/refs/tags/v${pkgver}.tar.gz")
-sha256sums=('c78e3de4b1c683a70b1d44badcbf6c4ae1001636762a15a85636b0d5fdfd2ace')
+sha256sums=('23052b5e12b154f9325065d2c03bdee60499f0d255895482b3ce31e115364775')

 prepare() {
     cd "$srcdir/aioesphomeapi-${pkgver}"

sgar commented on 2021-11-17 16:16 (UTC)

This package will be kept at the version that is used by esphome. So it might not be always the latest released version but it will work better with esphome.