Giter Site home page Giter Site logo

Comments (3)

scornflake avatar scornflake commented on June 10, 2024

I'm new to dev on HA / HACS (not python).

Im trying to provide better info.
Can someone tell me how i'd breakpoint or hot-reload the HACS code? is it possible?

e.g: Im messing with it like so:

 async def _async_get_device_info(self, config: dict[str, Any]) -> DeviceInfo:
        if not config[CONF_HOST]:
            raise InvalidHost
        try:
            session = async_create_clientsession(self.hass)
            credential = AuthCredential(config[CONF_USERNAME], config[CONF_PASSWORD])
            host, port = get_host_port(config[CONF_HOST])
            client = TapoClient.create(
                credential, address=host, port=port, http_session=session
            )
            info = await client.get_device_info()
            _LOGGER.info(f"_async_get_device_info info: {info}")
            
            if info is not None:
                dev_info = DeviceInfo(**info)
                
            return (
                (await client.get_device_info())
                .map(lambda x: DeviceInfo(**x))
                .get_or_raise()

namely:

_LOGGER.info(f"_async_get_device_info info: {info}")

is there a better / faster way to interact with the code other than what I'm doing? which is:

  1. change it using vs code server within HA
  2. reboot the HA instance
  3. observe
  4. get a cup of tea

from home-assistant-tapo-p100.

github-actions avatar github-actions commented on June 10, 2024

This issue is stale because it has been open for 30 days with no activity.

from home-assistant-tapo-p100.

github-actions avatar github-actions commented on June 10, 2024

This issue was closed because it has been inactive for 14 days since being marked as stale.

from home-assistant-tapo-p100.

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.