-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
0.14.1 - Added Number:Dimensionless as a unit of measurement (closes #157 ) - made z-wave table more robust
- Loading branch information
1 parent
e984df4
commit e124fca
Showing
11 changed files
with
41 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = '0.14.0' | ||
__version__ = '0.14.1' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
from .definitions import ITEM_TYPES, ITEM_DIMENSION, GROUP_FUNCTIONS | ||
from .definitions import ITEM_TYPES, ITEM_DIMENSIONS, GROUP_FUNCTIONS | ||
from .values import OnOffValue, PercentValue, UpDownValue, HSBValue, QuantityValue, OpenClosedValue, RawValue | ||
from . import rest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,16 @@ | ||
from HABApp.openhab.map_items import map_items | ||
from HABApp.openhab.items import NumberItem | ||
|
||
|
||
def test_exception(): | ||
assert map_items('test', 'Number', 'asdf') is None | ||
|
||
|
||
def test_number_unit_of_measurement(): | ||
assert map_items('test1', 'Number:Length', '1.0 m') == NumberItem('test', 1) | ||
assert map_items('test2', 'Number:Temperature', '2.0 °C') == NumberItem('test', 2) | ||
assert map_items('test3', 'Number:Pressure', '3.0 hPa') == NumberItem('test', 3) | ||
assert map_items('test4', 'Number:Speed', '4.0 km/h') == NumberItem('test', 4) | ||
assert map_items('test5', 'Number:Intensity', '5.0 W/m2') == NumberItem('test', 5) | ||
assert map_items('test6', 'Number:Dimensionless', '6.0') == NumberItem('test', 6) | ||
assert map_items('test7', 'Number:Angle', '7.0 °') == NumberItem('test', 7) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters