Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95419

Python script calling another python script with parameter

$
0
0

@impeham wrote:

if we have python_1 script which uses “data.get(‘xxx’)” to retrieve xxx parameter, when called from python_2 script using:
hass.services.call(‘python_script’, ‘python_1’, data)

how can you specify the “xxx” parameter (should this parameter be specified inside ‘data’ somehow)?

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 95419

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>