Calling python script from HA

Hi, I am calling python script from configuration.yaml, but there is no even sensor/value of cellartemp. Trying name: “cellartemp” and name: cellartemp, but nothing is happening… Python script works fine outside HA. Please help:

sensor:
  - platform: command_line
    name: "cellartemp"
    command: "python3 /custom_components/shellycloud/cellar_temp.py"
    scan_interval: 3600
    value_template: "{{ value | float }}"

Hello Vasek,

Are you using this?

Hello. no just ubuntu python on the host system and calling it directly…

Have you checked the logs to make sure the script is returning a value?

I am using pyscript, allowing you to define your dependencies too: Pyscript: Python Scripting for Home Assistant — hacs-pyscript 1.6.4 documentation

I do not see any value… But calling the script directly from Ubuntu environment returns the value properly.
this is the script:

import requests

import json

url = "https://shelly-1...../device/status?id=dxxx&auth_key=12345asdf"

response = requests.get(url)

data = response.json()

temperature = data['data']['device_status']['temperature:0']['tC']

print(temperature)