Skip to content

Commit

Permalink
Deploying to gh-pages from @ smarthomeNG/smarthome@f8a5aa2 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
Morg42 committed Oct 16, 2024
1 parent 6280d30 commit 09ee11a
Show file tree
Hide file tree
Showing 735 changed files with 779 additions and 759 deletions.
2 changes: 1 addition & 1 deletion .buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: ae39282786af9c7350befbd9a39b9950
config: d5828b1fa59d9b9e522aac28862c8f84
tags: 53fce1f610f91183c07e2025655d47fe
2 changes: 1 addition & 1 deletion _modules/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Überblick: Modul-Quellcode &mdash; Dokumentation v1.10.0.3 v1.10.0.3 develop (Stand 14. Oktober 2024, commit ac8992e) Dokumentation</title>
<title>Überblick: Modul-Quellcode &mdash; Dokumentation v1.10.0.3 v1.10.0.3 develop (Stand 16. Oktober 2024, commit f1eeeb5) Dokumentation</title>
<link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="../_static/css/theme.css" />
<link rel="stylesheet" type="text/css" href="../_static/custom.css" />
Expand Down
2 changes: 1 addition & 1 deletion _modules/lib/config.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>lib.config &mdash; Dokumentation v1.10.0.3 v1.10.0.3 develop (Stand 14. Oktober 2024, commit ac8992e) Dokumentation</title>
<title>lib.config &mdash; Dokumentation v1.10.0.3 v1.10.0.3 develop (Stand 16. Oktober 2024, commit f1eeeb5) Dokumentation</title>
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css" />
<link rel="stylesheet" type="text/css" href="../../_static/custom.css" />
Expand Down
2 changes: 1 addition & 1 deletion _modules/lib/connection.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>lib.connection &mdash; Dokumentation v1.10.0.3 v1.10.0.3 develop (Stand 14. Oktober 2024, commit ac8992e) Dokumentation</title>
<title>lib.connection &mdash; Dokumentation v1.10.0.3 v1.10.0.3 develop (Stand 16. Oktober 2024, commit f1eeeb5) Dokumentation</title>
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css" />
<link rel="stylesheet" type="text/css" href="../../_static/custom.css" />
Expand Down
2 changes: 1 addition & 1 deletion _modules/lib/daemon.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>lib.daemon &mdash; Dokumentation v1.10.0.3 v1.10.0.3 develop (Stand 14. Oktober 2024, commit ac8992e) Dokumentation</title>
<title>lib.daemon &mdash; Dokumentation v1.10.0.3 v1.10.0.3 develop (Stand 16. Oktober 2024, commit f1eeeb5) Dokumentation</title>
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css" />
<link rel="stylesheet" type="text/css" href="../../_static/custom.css" />
Expand Down
2 changes: 1 addition & 1 deletion _modules/lib/db.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>lib.db &mdash; Dokumentation v1.10.0.3 v1.10.0.3 develop (Stand 14. Oktober 2024, commit ac8992e) Dokumentation</title>
<title>lib.db &mdash; Dokumentation v1.10.0.3 v1.10.0.3 develop (Stand 16. Oktober 2024, commit f1eeeb5) Dokumentation</title>
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css" />
<link rel="stylesheet" type="text/css" href="../../_static/custom.css" />
Expand Down
2 changes: 1 addition & 1 deletion _modules/lib/env.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>lib.env &mdash; Dokumentation v1.10.0.3 v1.10.0.3 develop (Stand 14. Oktober 2024, commit ac8992e) Dokumentation</title>
<title>lib.env &mdash; Dokumentation v1.10.0.3 v1.10.0.3 develop (Stand 16. Oktober 2024, commit f1eeeb5) Dokumentation</title>
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css" />
<link rel="stylesheet" type="text/css" href="../../_static/custom.css" />
Expand Down
37 changes: 23 additions & 14 deletions _modules/lib/item/item.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>lib.item.item &mdash; Dokumentation v1.10.0.3 v1.10.0.3 develop (Stand 14. Oktober 2024, commit ac8992e) Dokumentation</title>
<title>lib.item.item &mdash; Dokumentation v1.10.0.3 v1.10.0.3 develop (Stand 16. Oktober 2024, commit f1eeeb5) Dokumentation</title>
<link rel="stylesheet" type="text/css" href="../../../_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="../../../_static/css/theme.css" />
<link rel="stylesheet" type="text/css" href="../../../_static/custom.css" />
Expand Down Expand Up @@ -6002,6 +6002,7 @@ <h1>Quellcode für lib.item.item</h1><div class="highlight"><pre>
<span class="bp">self</span><span class="o">.</span><span class="n">_on_change_dest_var_unexp</span> <span class="o">=</span> <span class="p">[]</span> <span class="c1"># -&gt; KEY_ON_CHANGE destination var (with unexpanded item reference)</span>
<span class="bp">self</span><span class="o">.</span><span class="n">_log_change</span> <span class="o">=</span> <span class="kc">None</span>
<span class="bp">self</span><span class="o">.</span><span class="n">_log_change_logger</span> <span class="o">=</span> <span class="kc">None</span>
<span class="bp">self</span><span class="o">.</span><span class="n">_log_level_attrib</span> <span class="o">=</span> <span class="kc">None</span>
<span class="bp">self</span><span class="o">.</span><span class="n">_log_level</span> <span class="o">=</span> <span class="kc">None</span>
<span class="bp">self</span><span class="o">.</span><span class="n">_log_level_name</span> <span class="o">=</span> <span class="kc">None</span>
<span class="bp">self</span><span class="o">.</span><span class="n">_log_mapping</span> <span class="o">=</span> <span class="p">{}</span>
Expand Down Expand Up @@ -6134,18 +6135,8 @@ <h1>Quellcode für lib.item.item</h1><div class="highlight"><pre>

<span class="k">elif</span> <span class="n">attr</span> <span class="ow">in</span> <span class="p">[</span><span class="n">KEY_LOG_LEVEL</span><span class="p">]:</span>
<span class="k">if</span> <span class="n">value</span> <span class="o">!=</span> <span class="s1">&#39;&#39;</span><span class="p">:</span>
<span class="n">level</span> <span class="o">=</span> <span class="n">value</span><span class="o">.</span><span class="n">upper</span><span class="p">()</span>
<span class="n">level_name</span> <span class="o">=</span> <span class="n">level</span>
<span class="k">if</span> <span class="n">Utils</span><span class="o">.</span><span class="n">is_int</span><span class="p">(</span><span class="n">level</span><span class="p">):</span>
<span class="n">level</span> <span class="o">=</span> <span class="nb">int</span><span class="p">(</span><span class="n">level</span><span class="p">)</span>
<span class="n">level_name</span> <span class="o">=</span> <span class="n">logging</span><span class="o">.</span><span class="n">getLevelName</span><span class="p">(</span><span class="n">level</span><span class="p">)</span>
<span class="k">if</span> <span class="n">logging</span><span class="o">.</span><span class="n">getLevelName</span><span class="p">(</span><span class="n">level</span><span class="p">)</span> <span class="o">==</span> <span class="s1">&#39;Level &#39;</span> <span class="o">+</span> <span class="nb">str</span><span class="p">(</span><span class="n">level</span><span class="p">):</span>
<span class="n">logger</span><span class="o">.</span><span class="n">warning</span><span class="p">(</span><span class="sa">f</span><span class="s2">&quot;Item </span><span class="si">{</span><span class="bp">self</span><span class="o">.</span><span class="n">_path</span><span class="si">}</span><span class="s2">: Invalid loglevel &#39;</span><span class="si">{</span><span class="n">value</span><span class="si">}</span><span class="s2">&#39; defined in attribute &#39;</span><span class="si">{</span><span class="n">KEY_LOG_LEVEL</span><span class="si">}</span><span class="s2">&#39; - Level &#39;INFO&#39; will be used instead&quot;</span><span class="p">)</span>
<span class="nb">setattr</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="s1">&#39;_log_level_name&#39;</span><span class="p">,</span> <span class="s1">&#39;INFO&#39;</span><span class="p">)</span>
<span class="nb">setattr</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="s1">&#39;_log_level&#39;</span><span class="p">,</span> <span class="n">logging</span><span class="o">.</span><span class="n">getLevelName</span><span class="p">(</span><span class="s1">&#39;INFO&#39;</span><span class="p">))</span>
<span class="k">else</span><span class="p">:</span>
<span class="nb">setattr</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="s1">&#39;_log_level_name&#39;</span><span class="p">,</span> <span class="n">level_name</span><span class="p">)</span>
<span class="nb">setattr</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="s1">&#39;_log_level&#39;</span><span class="p">,</span> <span class="n">logging</span><span class="o">.</span><span class="n">getLevelName</span><span class="p">(</span><span class="n">level_name</span><span class="p">))</span>
<span class="nb">setattr</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="s1">&#39;_log_level_attrib&#39;</span><span class="p">,</span> <span class="n">value</span><span class="p">)</span>

<span class="k">elif</span> <span class="n">attr</span> <span class="ow">in</span> <span class="p">[</span><span class="n">KEY_LOG_CHANGE</span><span class="p">]:</span>
<span class="k">if</span> <span class="n">value</span> <span class="o">!=</span> <span class="s1">&#39;&#39;</span><span class="p">:</span>
<span class="nb">setattr</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="s1">&#39;_log_change&#39;</span><span class="p">,</span> <span class="n">value</span><span class="p">)</span>
Expand Down Expand Up @@ -7941,7 +7932,7 @@ <h1>Quellcode für lib.item.item</h1><div class="highlight"><pre>
<span class="c1">#logger.warning(f&quot;self._log_text: {self._log_text}, type={type(self._log_text)}&quot;)</span>
<span class="n">txt</span> <span class="o">=</span> <span class="nb">eval</span><span class="p">(</span><span class="sa">f</span><span class="s2">&quot;f&#39;</span><span class="si">{</span><span class="bp">self</span><span class="o">.</span><span class="n">_log_text</span><span class="si">}</span><span class="s2">&#39;&quot;</span><span class="p">)</span>
<span class="k">except</span> <span class="ne">Exception</span> <span class="k">as</span> <span class="n">e</span><span class="p">:</span>
<span class="n">logger</span><span class="o">.</span><span class="n">error</span><span class="p">(</span><span class="sa">f</span><span class="s2">&quot;</span><span class="si">{</span><span class="nb">id</span><span class="si">}</span><span class="s2">: Invalid log_text template &#39; </span><span class="si">{</span><span class="bp">self</span><span class="o">.</span><span class="n">_log_text</span><span class="si">}</span><span class="s2">&#39; - (Exception: </span><span class="si">{</span><span class="n">e</span><span class="si">}</span><span class="s2">)&quot;</span><span class="p">)</span>
<span class="n">logger</span><span class="o">.</span><span class="n">error</span><span class="p">(</span><span class="sa">f</span><span class="s2">&quot;</span><span class="si">{</span><span class="nb">id</span><span class="si">}</span><span class="s2">: Invalid log_text template &#39;</span><span class="si">{</span><span class="bp">self</span><span class="o">.</span><span class="n">_log_text</span><span class="si">}</span><span class="s2">&#39; - (Exception: </span><span class="si">{</span><span class="n">e</span><span class="si">}</span><span class="s2">)&quot;</span><span class="p">)</span>
<span class="n">txt</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">_log_text</span>
<span class="k">return</span> <span class="n">txt</span>

Expand Down Expand Up @@ -8026,6 +8017,24 @@ <h1>Quellcode für lib.item.item</h1><div class="highlight"><pre>
<span class="c1"># if dest is not None:</span>
<span class="c1"># log_dst += &#39;, dest: &#39; + dest</span>
<span class="c1">#self._log_change_logger.log(self._log_level, &quot;Item Change: {} = {} - caller: {}{}{}&quot;.format(self._path, value, caller, log_src, log_dst))</span>
<span class="k">try</span><span class="p">:</span>
<span class="n">val</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">_log_level_attrib</span><span class="o">.</span><span class="n">replace</span><span class="p">(</span><span class="s2">&quot;&#39;&quot;</span><span class="p">,</span> <span class="s1">&#39;&quot;&#39;</span><span class="p">)</span>
<span class="n">log_level</span> <span class="o">=</span> <span class="nb">eval</span><span class="p">(</span><span class="sa">f</span><span class="s2">&quot;f&#39;</span><span class="si">{</span><span class="n">val</span><span class="si">}</span><span class="s2">&#39;&quot;</span><span class="p">)</span>
<span class="k">except</span> <span class="ne">Exception</span> <span class="k">as</span> <span class="n">e</span><span class="p">:</span>
<span class="n">log_level</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">_log_level_attrib</span>
<span class="n">logger</span><span class="o">.</span><span class="n">error</span><span class="p">(</span><span class="sa">f</span><span class="s2">&quot;</span><span class="si">{</span><span class="nb">id</span><span class="si">}</span><span class="s2">: Invalid log_level template &#39;</span><span class="si">{</span><span class="n">log_level</span><span class="si">}</span><span class="s2">&#39; - (Exception: </span><span class="si">{</span><span class="n">e</span><span class="si">}</span><span class="s2">)&quot;</span><span class="p">)</span>
<span class="n">level</span> <span class="o">=</span> <span class="n">log_level</span><span class="o">.</span><span class="n">upper</span><span class="p">()</span>
<span class="n">level_name</span> <span class="o">=</span> <span class="n">level</span>
<span class="k">if</span> <span class="n">Utils</span><span class="o">.</span><span class="n">is_int</span><span class="p">(</span><span class="n">level</span><span class="p">):</span>
<span class="n">level</span> <span class="o">=</span> <span class="nb">int</span><span class="p">(</span><span class="n">level</span><span class="p">)</span>
<span class="n">level_name</span> <span class="o">=</span> <span class="n">logging</span><span class="o">.</span><span class="n">getLevelName</span><span class="p">(</span><span class="n">level</span><span class="p">)</span>
<span class="k">if</span> <span class="n">logging</span><span class="o">.</span><span class="n">getLevelName</span><span class="p">(</span><span class="n">level</span><span class="p">)</span> <span class="o">==</span> <span class="s1">&#39;Level &#39;</span> <span class="o">+</span> <span class="nb">str</span><span class="p">(</span><span class="n">level</span><span class="p">):</span>
<span class="n">logger</span><span class="o">.</span><span class="n">warning</span><span class="p">(</span><span class="sa">f</span><span class="s2">&quot;Item </span><span class="si">{</span><span class="bp">self</span><span class="o">.</span><span class="n">_path</span><span class="si">}</span><span class="s2">: Invalid loglevel &#39;</span><span class="si">{</span><span class="n">log_level</span><span class="si">}</span><span class="s2">&#39; defined in attribute &#39;</span><span class="si">{</span><span class="n">KEY_LOG_LEVEL</span><span class="si">}</span><span class="s2">&#39; - Level &#39;INFO&#39; will be used instead&quot;</span><span class="p">)</span>
<span class="nb">setattr</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="s1">&#39;_log_level_name&#39;</span><span class="p">,</span> <span class="s1">&#39;INFO&#39;</span><span class="p">)</span>
<span class="nb">setattr</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="s1">&#39;_log_level&#39;</span><span class="p">,</span> <span class="n">logging</span><span class="o">.</span><span class="n">getLevelName</span><span class="p">(</span><span class="s1">&#39;INFO&#39;</span><span class="p">))</span>
<span class="k">else</span><span class="p">:</span>
<span class="nb">setattr</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="s1">&#39;_log_level_name&#39;</span><span class="p">,</span> <span class="n">level_name</span><span class="p">)</span>
<span class="nb">setattr</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="s1">&#39;_log_level&#39;</span><span class="p">,</span> <span class="n">logging</span><span class="o">.</span><span class="n">getLevelName</span><span class="p">(</span><span class="n">level_name</span><span class="p">))</span>
<span class="bp">self</span><span class="o">.</span><span class="n">_log_change_logger</span><span class="o">.</span><span class="n">log</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">_log_level</span><span class="p">,</span> <span class="n">txt</span><span class="p">)</span>


Expand Down
2 changes: 1 addition & 1 deletion _modules/lib/item/items.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>lib.item.items &mdash; Dokumentation v1.10.0.3 v1.10.0.3 develop (Stand 14. Oktober 2024, commit ac8992e) Dokumentation</title>
<title>lib.item.items &mdash; Dokumentation v1.10.0.3 v1.10.0.3 develop (Stand 16. Oktober 2024, commit f1eeeb5) Dokumentation</title>
<link rel="stylesheet" type="text/css" href="../../../_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="../../../_static/css/theme.css" />
<link rel="stylesheet" type="text/css" href="../../../_static/custom.css" />
Expand Down
2 changes: 1 addition & 1 deletion _modules/lib/item_conversion.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>lib.item_conversion &mdash; Dokumentation v1.10.0.3 v1.10.0.3 develop (Stand 14. Oktober 2024, commit ac8992e) Dokumentation</title>
<title>lib.item_conversion &mdash; Dokumentation v1.10.0.3 v1.10.0.3 develop (Stand 16. Oktober 2024, commit f1eeeb5) Dokumentation</title>
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css" />
<link rel="stylesheet" type="text/css" href="../../_static/custom.css" />
Expand Down
Loading

0 comments on commit 09ee11a

Please sign in to comment.