-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
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
Update modbus.py #8256
Update modbus.py #8256
Conversation
Prevents Modbus binary sensors showing up as "unnamed_device". Originally proposed here https://community.home-assistant.io/t/modbus-sensor/6751/11 by user Pjeter
@lrmate, thanks for your PR! By analyzing the history of the files in this pull request, we identified @persandstrom and @fabaff to be potential reviewers. |
|
||
def name(self): | ||
"""Return the name of the sensor.""" | ||
return self._name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
trailing whitespace
@@ -49,6 +49,10 @@ def __init__(self, name, slave, coil): | |||
self._slave = int(slave) if slave else None | |||
self._coil = int(coil) | |||
self._value = None | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
blank line contains whitespace
* Update modbus.py Prevents Modbus binary sensors showing up as "unnamed_device". Originally proposed here https://community.home-assistant.io/t/modbus-sensor/6751/11 by user Pjeter * Update modbus.py
* Update modbus.py Prevents Modbus binary sensors showing up as "unnamed_device". Originally proposed here https://community.home-assistant.io/t/modbus-sensor/6751/11 by user Pjeter * Update modbus.py
Prevents Modbus binary sensors showing up as "unnamed_device".
Originally proposed here https://community.home-assistant.io/t/modbus-sensor/6751/11 by user Pjeter
Description:
Related issue (if applicable): fixes #
Pull request in home-assistant.github.io with documentation (if applicable): home-assistant/home-assistant.github.io#<home-assistant.github.io PR number goes here>
Example entry for
configuration.yaml
(if applicable):Checklist:
If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
tox
run successfully. Your PR cannot be merged unless tests passREQUIREMENTS
variable (example).requirements_all.txt
by runningscript/gen_requirements_all.py
..coveragerc
.If the code does not interact with devices:
tox
run successfully. Your PR cannot be merged unless tests pass