Skip to content
This repository has been archived by the owner on Feb 15, 2018. It is now read-only.

Commit

Permalink
Use filter support from helium-python
Browse files Browse the repository at this point in the history
  • Loading branch information
madninja committed Feb 27, 2017
1 parent 424b1ef commit 497448b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
6 changes: 6 additions & 0 deletions CHANGES
Expand Up @@ -3,6 +3,12 @@ Helium Commander Changelog

Here you'll find the major differences between each release.

Version 0.15.6
--------------------

Released on February 27

- Use helium-python 0.9.0 for filter support


Version 0.15.5
Expand Down
11 changes: 5 additions & 6 deletions helium_commander/commands/configuration.py
Expand Up @@ -71,13 +71,12 @@ def delete(client, config):
_dev_config_includes = [Device, Configuration]

def _dev_configs(client, config):
def _filter_configs(dc):
return dc.configuration(use_included=True) == config
include = _dev_config_includes
dev_configs = DeviceConfiguration.all(client, include=include)
return filter(lambda dc:
dc.configuration(use_included=True) == config,
dev_configs)


return DeviceConfiguration.where(client,
include=include,
filter=_filter_configs)


@cli.command()
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -3,7 +3,7 @@
author = 'Helium'
author_email = 'hello@helium.com'
install_requires = [
'helium-python>=0.8.1',
'helium-python>=0.9.0',
'future>=0.15',
'futures>=3.0',
'terminaltables>=2.1.0',
Expand Down

0 comments on commit 497448b

Please sign in to comment.