Skip to content

Commit 81f90db

Browse files
committed
Make current level a LevelProperty.
1 parent e06e5c3 commit 81f90db

File tree

5 files changed

+6
-4
lines changed

5 files changed

+6
-4
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
build:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v1
15+
- uses: actions/checkout@v2
1616
- name: Set up Python 3.7
1717
uses: actions/setup-python@v1
1818
with:

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
build:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v1
12+
- uses: actions/checkout@v2
1313
- name: Set up Python 3.7
1414
uses: actions/setup-python@v1
1515
with:

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,5 @@
4545
}
4646
},
4747
"short_name": "Tide",
48-
"version": "0.3.1"
48+
"version": "0.3.2"
4949
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "tide-calendar-adapter",
33
"display_name": "Tide Calendar",
4-
"version": "0.3.1",
4+
"version": "0.3.2",
55
"description": "Tide calendar for Mozilla WebThings Gateway",
66
"author": "Mozilla IoT",
77
"main": "main.py",

pkg/tide_calendar_device.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,13 @@ def __init__(self, adapter, _id, station_id, unit):
112112
)
113113

114114
if self.have_water_levels:
115+
self._type = ['MultiLevelSensor']
115116
self.properties['currentLevel'] = TideCalendarProperty(
116117
self,
117118
'currentLevel',
118119
{
119120
'title': 'Current Level',
121+
'@type': 'LevelProperty',
120122
'type': 'number',
121123
'unit': 'foot' if self.unit == 'english' else 'meter',
122124
'readOnly': True,

0 commit comments

Comments
 (0)