Skip to content

Commit

Permalink
Rename v_batt to u_batt
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeoLacruz committed Dec 17, 2024
1 parent 19defb9 commit 6acb3ad
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
5 changes: 5 additions & 0 deletions cp_piusv
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
cp /usr/local/smarthome/plugins/piusv/__init__.py ./piusv
cp /usr/local/smarthome/plugins/piusv/plugin.yaml ./piusv
cp /usr/local/smarthome/plugins/piusv/user_doc.rst ./piusv
cp /usr/local/smarthome/plugins/piusv/locale.yaml ./piusv
cp -r /usr/local/smarthome/plugins/piusv/webif ./piusv
2 changes: 1 addition & 1 deletion piusv/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def poll_device(self):

pass

def v_batt(self):
def u_batt(self):
return self.get_parameter(0)

def i_rasp(self):
Expand Down
12 changes: 6 additions & 6 deletions piusv/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ item_attributes:
de: 'Funktion des piusv Plugins'
en: 'Function of piusv Plugins'
valid_list:
- 'v_batt'
- 'u_batt'
- 'i_rasp'
- 'u_rasp'
- 'u_usb'
Expand Down Expand Up @@ -73,9 +73,9 @@ item_structs:
type: bool
piusv_sys: update

v_batt:
u_batt:
type: num
piusv_func: v_batt
piusv_func: u_batt
visu_acl: ro

i_rasp:
Expand Down Expand Up @@ -115,9 +115,9 @@ item_structs:
type: bool
piusv_sys: update

v_batt:
u_batt:
type: num
piusv_func: v_batt
piusv_func: u_batt
visu_acl: ro

i_rasp:
Expand Down Expand Up @@ -153,7 +153,7 @@ item_structs:
item_attribute_prefixes: NONE

plugin_functions:
v_batt:
u_batt:
type: int
description:
de: 'Batteriespannung'
Expand Down
2 changes: 1 addition & 1 deletion piusv/webif/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
{% endblock pluginscripts %}

{% block headtable %}
<span id='suspended' style="display:inone">{{ p.suspended }}</span>
<span id='suspended' style="display:none">{{ p.suspended }}</span>

<table class="table table-striped table-hover">
<tbody>
Expand Down

0 comments on commit 6acb3ad

Please sign in to comment.