mirror of
https://github.com/esphome/esphome.git
synced 2025-09-02 19:32:19 +01:00
Sun support (#531)
* Sun * Add sun support * Lint * Updates * Fix elevation * Lint * Update mqtt_climate.cpp
This commit is contained in:
@@ -424,10 +424,14 @@ def new_Pvariable(id, # type: ID
|
||||
return Pvariable(id, rhs)
|
||||
|
||||
|
||||
def add(expression, # type: Union[SafeExpType, Statement]
|
||||
def add(expression, # type: Union[Expression, Statement]
|
||||
):
|
||||
# type: (...) -> None
|
||||
"""Add an expression to the codegen setup() storage."""
|
||||
"""Add an expression to the codegen section.
|
||||
|
||||
After this is called, the given given expression will
|
||||
show up in the setup() function after this has been called.
|
||||
"""
|
||||
CORE.add(expression)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user