8000 Use voluptuous for statsd by fabaff · Pull Request #2928 · home-assistant/core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Use voluptuous for statsd #2928

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 14, 2016
Merged

Use voluptuous for statsd #2928

merged 2 commits into from
Sep 14, 2016

Conversation

fabaff
Copy link
Member
@fabaff fabaff commented Aug 22, 2016

Description:
Migration of the configuration check to voluptuous.

Related issue (if applicable): fixes 127528299

Example entry for configuration.yaml (if applicable):

statsd:
  host: localhost
  port: 8125
  prefix: DB_TO_STORE_EVENTS
  rate: 1
  log_attributes: true

@michaelkuty, would be nice if you could take a look at the changes and run a quick test. Thanks.

@michaelkuty
Copy link
Contributor

LGTM !

@fabaff fabaff changed the title Voluptuous statsd Use voluptuous for statsd Aug 22, 2016
@fabaff fabaff mentioned this pull request Aug 22, 2016
vol.Optional(CONF_PREFIX, default=DEFAULT_PREFIX): cv.string,
vol.Optional(CONF_RATE, default=DEFAULT_RATE):
vol.All(vol.Coerce(int), vol.Range(min=1)),
}),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Disallow inside component schema.

@balloob
Copy link
Member
balloob commented Aug 24, 2016

StatsD tests are broken.

@balloob balloob merged commit ac5647a into home-assistant:dev Sep 14, 2016
hartmms pushed a commit to hartmms/home-assistant that referenced this pull request Sep 17, 2016
* Migrate to voluptuous

* Update tests
@home-assistant home-assistant locked and limited conversation to collaborators Mar 17, 2017
@fabaff fabaff deleted the voluptuous-statsd branch April 12, 2017 07:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0