<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Fix for Home Assistant - solution provided]]></title><description><![CDATA[<p dir="auto">[Bug] HA package 1.23.1 (Core 2026.9.2): cffi 2.0.0 / _cffi_backend 2.1.1 mismatch breaks Yale + any pycryptodome integration</p>
<ul>
<li>Cloudron HA package 1.23.1, image <code>cloudron/io.homeassistant.cloudronapp:202609071958520000</code></li>
<li>HA Core 2026.9.2, Python 3.14.6 (x86_64)</li>
<li>Fresh install on Cloudron 9.x, app at <code>1071.customdomain.com</code></li>
</ul>
<p dir="auto"><strong>Problem</strong></p>
<p dir="auto">On a fresh install, every integration that pulls in pycryptodome fails to import. Example: Yale.</p>
<pre><code>ERROR (ImportExecutor_0) [homeassistant.loader] Unexpected exception importing platform homeassistant.components.yale.config_flow
ERROR (MainThread) [homeassistant.setup] Setup failed for yale: Unable to import component
Exception: Version mismatch: this is the 'cffi' package version 2.0.0, located in
'/app/code/lib/python3.14/site-packages/cffi/api.py'. When we import the top-level
'_cffi_backend' extension module, we get version 2.1.1, located in
'/app/code/lib/python3.14/site-packages/_cffi_backend.cpython-314-x86_64-linux-gnu.so'.
</code></pre>
<p dir="auto">Import chain: <code>yale -&gt; yalexs -&gt; pubnub -&gt; Cryptodome -&gt; FFI()</code> -&gt; version check fails.</p>
<p dir="auto">Affected integrations are any that import pycryptodome / cryptography through cffi (Yale, roborock, google, etc.).</p>
<p dir="auto"><strong>Root cause</strong></p>
<p dir="auto">HA Core pins <code>cffi==2.0.0</code> in <code>homeassistant/package_constraints.txt</code> (added in PR #175907, released in 2026.8.0, to match the pre-baked <code>_cffi_backend</code> in official HA images). The Cloudron image venv ends up with the cffi <strong>2.0.0</strong> Python package but a <code>_cffi_backend</code> <strong>2.1.1</strong> binary — mismatched halves, and cffi hard-fails on that at import time.</p>
<p dir="auto">Same bug class as home-assistant/core#175882 (there the direction was reversed: 2.1.0 package vs 2.0.0 backend).</p>
<p dir="auto"><strong>Workaround (user-side, lost on every app update)</strong></p>
<p dir="auto">In the app Web Terminal:</p>
<pre><code>/app/code/bin/pip install --no-cache-dir --force-reinstall --no-deps cffi==2.0.0
/app/code/bin/python -c "import cffi, _cffi_backend; print(cffi.__version__, _cffi_backend.__version__)"
</code></pre>
<p dir="auto">Must print <code>2.0.0 2.0.0</code> (the 2.0.0 wheel ships its own matching backend .so and replaces the 2.1.1 binary). Then restart the app.</p>
<p dir="auto">Verified working after this: Yale integration loads normally (19 devices / 89 entities in our case).</p>
<p dir="auto"><strong>Suggested package fix</strong></p>
<p dir="auto">Align both halves in the image build. Either:</p>
<ol>
<li>Force <code>cffi==2.0.0</code> as the final pip step of the Dockerfile (matches HA's own constraint, wheel includes the 2.0.0 backend .so), or</li>
<li>Ship cffi 2.1.1 + backend 2.1.1 and override HA's package constraint.</li>
</ol>
<p dir="auto">Anything so that in the final image this prints two equal versions:</p>
<pre><code>/app/code/bin/python -c "import cffi, _cffi_backend; print(cffi.__version__, _cffi_backend.__version__)"
</code></pre>
<p dir="auto"><strong>Refs</strong></p>
<ul>
<li><a href="https://github.com/home-assistant/core/issues/175882" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/home-assistant/core/issues/175882</a></li>
<li><a href="https://github.com/home-assistant/core/pull/175907" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/home-assistant/core/pull/175907</a></li>
</ul>
]]></description><link>https://forum.cloudron.io/topic/15970/fix-for-home-assistant-solution-provided</link><generator>RSS for Node</generator><lastBuildDate>Wed, 23 Sep 2026 10:02:03 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/15970.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 16 Sep 2026 17:11:08 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Fix for Home Assistant - solution provided on Fri, 18 Sep 2026 11:02:37 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/creative567145" aria-label="Profile: creative567145">@<bdi>creative567145</bdi></a><br />
Thanks for the report.<br />
I have looked into this and an app update will be available soon.</p>
]]></description><link>https://forum.cloudron.io/post/129645</link><guid isPermaLink="true">https://forum.cloudron.io/post/129645</guid><dc:creator><![CDATA[james]]></dc:creator><pubDate>Fri, 18 Sep 2026 11:02:37 GMT</pubDate></item></channel></rss>