Home Assistant Core 2022.7 is (almost) all about performance

Disclosure: This post contains affiliate links. If you click through and make a purchase, I’ll earn a commission, at no additional cost to you. Read my full disclosure here.
Advertisement

The next major version of Home Assistant Core, 2022.7, is about to drop, and with that, we have to cover all the new and exciting additions. From an everyday’s user’s perspective, there won’t be many noticeable changes, as the Dashboard remains mostly unchanged.

Advertisement

Under the hood, though, many things have improved. If you have been using Home Assistant long enough, you might know that major under-the-hood changes frequently break things, as is the case this time.

Home Assistant Core 2022.7 optimizes YAML and JSON tooling

A very noticeable change will be felt by those who use lots of YAML in their configuration. Be it for templates, scripts, automations, or integrations that have not moved to the Dashboard yet, you will notice an increase in speed. This not only makes restarting Home Assistant faster, but also accelerates the reloading of YAML from Home Assistant’s Developer Tools (#73649, #73424, and #73337).

Advertisement

Not only is YAML receiving this treatment, but also JSON. Home Assistant frequently uses JSON internally and also for communication with the frontend and APIs. In addition to the improvements to YAML, this will make Home Assistant’s fell much snappier.

In Home Assistant Core 2022.7 devices self-recover

Are you tired of certain integrations taking what seems like forever to load after restarting Home Assistant Core? For me, this frequently happens with the MQTT integration, and I always have to wait for my lights and sensors to be usable again. In Home Assistant Core 2022.7 this should no longer be the case.

Advertisement

If there are any errors during a startup, devices will now self-recover as soon as they are discovered by Home Assistant.

Laying the groundwork for iOS 16

Apple’s next mobile operating systems, iOS and iPadOS 16, not only add support for Matter, better multitasking, and a reimagined Home app, but also improvements to the underlying architecture that controls smart home accessories. Preparing for this move, Home Assistant Core 2022.7 uses a better and faster encryption method for the HomeKit Accessory Protocol (HAP).

This not only ensures that the Home Assistant apps and integrations continue working once Apple releases the iOS/iPadOS updates this fall, but also improves the performance of the HomeKit, HomeKit Controller, and Apple TV integrations.

Python 3.10 brings mostly good news

Last, but not least, Home Assistant Core 2022.7 ships with Python 3.10. If you are running the Home Assistant Operating System on a Raspberry Pi, or any other compatible hardware or hypervisor, you have nothing to worry about when updating, as everything will be taken care of.

Those running Home Assistant Core using a Python virtual environment might have their work cut out for them. I’m assuming that if you chose to install Home Assistant Core manually, you will know what needs to be done.

Unmaintained custom components will break

The update to Python 3.10 should, as one might expect, bring a performance improvement with it. However, this change is also be what might cause a bit of a headache for some users. Custom components that do not support Python 3.10 yet, will not continue working. This cause you to have to seek alternatives if you are using old and unmaintained components or Dashboard cards.

On the upside, this change will help you get rid of the custom components that have been left to die and might pose a security risk. In the same vein, it might cause users of custom components that know their way around code, to pick up the slack and continue their development.

Home Assistant Core 2022.7 could be the death of many Bluetooth integrations

Besides the potential disappearance of custom components, the update to Python 3.10 has major repercussions for integrations that rely on Bluetooth. Due to bluepy, which Home Assistant used up until now, not being compatible with Python 3.10, the following integrations are currently broken:

  • BeeWi SmartClim BLE sensor
  • Elgato Avea
  • EQ3 Bluetooth Smart Thermostats
  • Leviton Decora
  • Mi Flora
  • Zengge

It is safe to assume that if any of these integrations are popular enough, it could lead to someone will take up the work and migrate the integrations to the up-to-date Bleak library. Users of the Mi Flora sensor also have the option of using ESPHome and an ESP32 to integrate the Mi Flora with Home Assistant.

Advertisement
Liam Alexander Colman, the author and maintainer of Home Assistant Guides.

About Liam Alexander Colman

Liam Alexander Colman has been using Home Assistant for various projects for quite some time. What started off with a Raspberry Pi quickly became three Raspberry Pis and eventually a full-blown server. I now use Unraid as my operating system, and Home Assistant happily runs in a Docker container. My personal setup includes many Zigbee devices as well as integrations with existing products such as my Android TV box. Read on to find out more on how I got started with Home Assistant.

Leave a comment

Advertisement
Share to...