You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, thank @mihai-dinculescu for your work in this library.
So, while all we need is to import the ApiClient to use this library, I am trying to add Type support for intellisense in VSCode so I am importing:
from tapo import ApiClient, LightHandler, ColorLightHandler
and my editor now looks like this:
However, this happens when I run the code:
This is the list of all my imports, I hope this issue isn't related to shadowing or something.
import asyncio
import colorsys
import sys
import TouchPortalAPI as TP
import yaml
from functools import wraps
from typing import Awaitable, Dict, Optional, Tuple, TypeVar, Union
from argparse import ArgumentParser
from TouchPortalAPI.logger import Logger
from tapo import ApiClient, LightHandler, ColorLightHandler
So my questions is, were LightHandler and ColorLightHandler not intented to be imported like this? If so, how to import them?
Thank you kindly for your help pointing me into the right direction.
The text was updated successfully, but these errors were encountered:
Thank you for fixing this issue. Has this push to main fixed the package dependency? I mean, to take advantage of this fix, shall I only reinstall the dependency with pip?
Not yet. I'll wait a few more days to gather a couple more changes before cutting a new release.
You can build it from source (the git repo) if you want to use it right away.
Hello,
First of all, thank @mihai-dinculescu for your work in this library.
So, while all we need is to import the ApiClient to use this library, I am trying to add Type support for intellisense in VSCode so I am importing:
and my editor now looks like this:
![image](https://private-user-images.githubusercontent.com/5934048/331831102-95844b37-5497-474c-a675-3e9b81bebcc7.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ1NDM3NTksIm5iZiI6MTcyNDU0MzQ1OSwicGF0aCI6Ii81OTM0MDQ4LzMzMTgzMTEwMi05NTg0NGIzNy01NDk3LTQ3NGMtYTY3NS0zZTliODFiZWJjYzcucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgyNCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MjRUMjM1MDU5WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ODU0MTljYTQzZjhmZjBlNjIxYTAzNzYzMjZlYTc1MGMwZWEwN2U3OGIxYjBjMDk1YTFhNWNlZmU2MjIxY2EzYiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.82swtntWDzZApAdi8AaB71mkr8rvCZCAG45UytFR-xU)
However, this happens when I run the code:
![image](https://private-user-images.githubusercontent.com/5934048/331831153-4dcc3a31-aa3f-4e8b-aed0-18e180c01d62.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ1NDM3NTksIm5iZiI6MTcyNDU0MzQ1OSwicGF0aCI6Ii81OTM0MDQ4LzMzMTgzMTE1My00ZGNjM2EzMS1hYTNmLTRlOGItYWVkMC0xOGUxODBjMDFkNjIucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgyNCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MjRUMjM1MDU5WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MTViMGIyZjY0ZTViN2U5YmNhOGUyY2U1MDJhOTBmZmYwNmU1N2ZhMDYxMTBhNjQ1NTgwNzA4NDRhNWZhMWQyNyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.V5-dWZKU3RTvFHwFfywZxqW2znLEqYX_i-5IVw48S-A)
This is the list of all my imports, I hope this issue isn't related to shadowing or something.
So my questions is, were LightHandler and ColorLightHandler not intented to be imported like this? If so, how to import them?
Thank you kindly for your help pointing me into the right direction.
The text was updated successfully, but these errors were encountered: