Git Product home page Git Product logo

Comments (6)

mtunique avatar mtunique commented on September 21, 2024

System Health

version core-2021.11.5
installation_type Home Assistant Container
dev false
hassio false
docker true
user root
virtualenv false
python_version 3.9.7
os_name Linux
os_version 4.4.180+
arch x86_64
timezone Asia/Shanghai
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web failed to load: timeout
GitHub API Calls Remaining 4996
Installed Version 1.24.5
Stage running
Available Repositories 1112
Downloaded Repositories 1
Home Assistant Cloud
logged_in false
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Lovelace
dashboards 1
resources 0
views 1
mode storage

from homeassistant-terncy-component.

mtunique avatar mtunique commented on September 21, 2024

image
手动添加是这样的

from homeassistant-terncy-component.

mtunique avatar mtunique commented on September 21, 2024

打印了下日志 discovery_info 变成dict 了,不是对象

from homeassistant-terncy-component.

mtunique avatar mtunique commented on September 21, 2024
    async def async_step_zeroconf(self, discovery_info):
        """Prepare configuration for a discovered Terncy device."""
        identifier = discovery_info['name']
        identifier = identifier.replace("." + TERNCY_HUB_SVC_NAME, "")
        await self.async_set_unique_id(identifier)
        self._abort_if_unique_id_configured()

        properties = discovery_info['properties']
        name = properties[CONF_NAME]
        self.context["identifier"] = self.unique_id
        self.context["title_placeholders"] = {"name": name}
        self.identifier = identifier
        self.name = name
        self.host = discovery_info['host']
        self.port = discovery_info['port']
        self.terncy.ip = self.host
        self.terncy.port = self.port
        mgr = TerncyHubManager.instance(self.hass)
        _LOGGER.info("start discovery engine of domain %s", DOMAIN)
        await _start_discovery(mgr)
        return await self.async_step_confirm()

改成这样 ok了,不知道是不是 ha 版本的问题

from homeassistant-terncy-component.

rxwen avatar rxwen commented on September 21, 2024

from homeassistant-terncy-component.

mtunique avatar mtunique commented on September 21, 2024

看文档里说的是 2021.3.1 我以为因为我的太新了,我升级下吧

from homeassistant-terncy-component.

Related Issues (20)

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.