datic0 / smart-google Goto Github PK
View Code? Open in Web Editor NEWGoogle Home integration to your custom devices by Google action and Python
License: Apache License 2.0
Google Home integration to your custom devices by Google action and Python
License: Apache License 2.0
The use of else
or elif
becomes redundant and can be dropped if the last statement under the leading if
/ elif
block is a return
statement. In the case of an elif
after return
, it can be written as a separate if
block. For else
blocks after return
, the …
There is 1 occurrence of this issue in the repository.
See all occurrences on DeepSource → deepsource.io/gh/DaTiC0/smart-google/issue/PYL-R1705/occurrences/
An unused argument can lead to confusions. It should be removed. If this variable is necessary, name the variable _
or start the name with unused
or _unused
.
There is 1 occurrence of this issue in the repository.
See all occurrences on DeepSource → deepsource.io/gh/DaTiC0/smart-google/issue/PYL-W0613/occurrences/
It is unnecessary to use a list
or tuple
literal within a call to tuple
, list
, set
, or dict
since there is a literal syntax for these types.
There is 1 occurrence of this issue in the repository.
See all occurrences on DeepSource → deepsource.io/gh/DaTiC0/smart-google/issue/PTC-W0018/occurrences/
Defining a local variable or function with the same name as a built-in object makes the built-in object unusable within the current scope and makes the code prone to bugs.
for input in body['inputs']:
for device in input['payload']['devices']:
A function, method or class is being redefined in the same scope. This would override the original definition, and doing this is strongly discouraged. Please verify that this is something that you intended to do.
There is 1 occurrence of this issue in the repository.
See all occurrences on DeepSource → deepsource.io/gh/DaTiC0/smart-google/issue/PYL-E0102/occurrences/
Using except
without a specific exception can be error prone.
There is 1 occurrence of this issue in the repository.
See all occurrences on DeepSource → deepsource.io/gh/DaTiC0/smart-google/issue/FLK-E722/occurrences/
26 try:
27 print('Try to replace NewLine Exception')
28 data['private_key'] = data['private_key'].replace('\\n', '\n')
29 except:
30 print('Nothing to replace')
31
32 print('DICTIONARY Generated')
Line 15 in 90b523c
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.