dmamelin
dmamelin
In Python, identifiers starting with a digit are prohibited. You should use state.get("sensor.192_168_1_3_package_id_0_temperature")
ooops... I wanted to make a separate PR for #581, but forgot about this PR and when I pushed to my fork, the changes were added here.
Just an evening experiment — a sentence_trigger for Pyscript, written in Pyscript 🥇 ```python from sentence_trigger import sentence_trigger @sentence_trigger("hey {slot1}") def test(slot1: str): return f"{slot1} is awesome!" ``` Show code...
The test failure is not related to the modified code.
https://github.com/aio-libs/aiodns/issues/214 Waiting for Home Assistant 2025.12.3 and pytest-homeassistant-custom-component==0.13.301.
@ALERTua the file path indicates the bug is unrelated
Stubs don’t affect Pyscript runtime at all. They are designed only for IDE development and exist only in the IDE. At HA startup, `sensor.basement_staircase_smoke_co_alarm_battery_level` may not yet be available, so:...
> Is there a way to have my script wait for entities to be available? `@state_trigger("sensor.basement_closet_smoke_co_alarm_battery_level.as_float(default=100)
You're doing everything right. But it's not implemented yet :) The implementation of classes in `pyscript` is weak. I think this is the cause of the error, not the implementation...
You’re right, `service.call()` isn’t included in `pyscript_builtins.py` due to a conflict with `@service`. > For instance, I can't call `light.turn_on()` with `transition` set to a float because it expects an...