Преглед изворни кода

docs: update for HA 2026.11

- HACS is now integrated into HA as "Marketplace"
- unannounced deprecation of CONNECTION_CLASS which has apparently
  been unused since HA 2021.6 when it was replaced with a manifest
  entry (there may have been an announcement then, but both were kept
  for backwards compatibility in the short term).
Jason Rumney пре 4 часа
родитељ
комит
38e48f86c9
2 измењених фајлова са 5 додато и 9 уклоњено
  1. 5 7
      README.md
  2. 0 2
      custom_components/tuya_local/config_flow.py

+ 5 - 7
README.md

@@ -30,16 +30,14 @@ easier to set up using that, or another more recent fork, as an alternative.
 
 ## Installation
 
-[![hacs_badge](https://img.shields.io/badge/HACS-Custom-orange.svg?style=for-the-badge)](https://github.com/hacs/integration)
-
-Installation is easiest via the [Home Assistant Community Store
-(HACS)](https://hacs.xyz/), which is the best place to get third-party
-integrations for Home Assistant. Once you have HACS set up, simply click the button below (requires My Homeassistant configured) or
+Installation is easiest via the Marketplace in Home Assistant 2026.11 or later
+(HACS in earlier versions), which is the best place to get third-party
+integrations for Home Assistant. Simply click the button below (requires My Homeassistant configured) or
 follow the [instructions for adding a custom
-repository](https://hacs.xyz/docs/faq/custom_repositories) and then
+repository](https://www.home-assistant.io/integrations/marketplace/#custom-repositories) and then
 the integration will be available to install like any other.
 
-[![Open your Home Assistant instance and open a repository inside the Home Assistant Community Store.](https://my.home-assistant.io/badges/hacs_repository.svg)](https://my.home-assistant.io/redirect/hacs_repository/?owner=make-all&repository=tuya-local&category=integration)
+[![Open your Home Assistant instance and open a repository inside the Marketplace.](https://my.home-assistant.io/badges/hacs_repository.svg)](https://my.home-assistant.io/redirect/hacs_repository/?owner=make-all&repository=tuya-local&category=integration)
 
 ## Configuration
 

+ 0 - 2
custom_components/tuya_local/config_flow.py

@@ -6,7 +6,6 @@ from typing import Any
 import probatio as vol
 import tinytuya
 from homeassistant.config_entries import (
-    CONN_CLASS_LOCAL_PUSH,
     ConfigEntry,
     ConfigFlow,
     OptionsFlow,
@@ -54,7 +53,6 @@ DEVICE_DETAILS_URL = (
 class ConfigFlowHandler(ConfigFlow, domain=DOMAIN):
     VERSION = 13
     MINOR_VERSION = 25
-    CONNECTION_CLASS = CONN_CLASS_LOCAL_PUSH
     device = None
     data = {}