-
-
Notifications
You must be signed in to change notification settings - Fork 30.6k
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
Combine Garage and Rollershutter Components -> Cover #1949
Comments
For garage doors we currently have the methods The rollershutter allows to stop mid-movement, but not all cover implementations will support this.
|
We attemped this before releasing Paulus Schoutsen notifications@github.com escreveu no dia segunda,
|
I agree, and that was one of my concerns as well. However, most of the platform pages aren't what people need to find anyway, and as long as the component pages also use the word I think a bigger issue than how people arrive from outside search engines is how to arrive from the main |
SEO should not impact how we pick our names. That's something for organization of our site. @sfam I know we've had these discussions before but it was only recently that via an opened issue I realized that open/close is not very straightforward. And if we flip it, well then it becomes identical to a garage door so let's make them 1. |
@n8henrie any plans to create a PR with your work? |
Thanks for the nudge. Yes, but as I mentioned in the other thread this is my first hass contribution and my first larger open source project contribution, so I'm unclear on a few points.
|
I'd be happy to test your changes for the Wink blinds (since I wrote that I definitely see open as open if they're called a cover. Fine with it
|
@philk This is the current situation, correct? Are you saying you currently don't have the open and close reversed? (Currently position 0 == rollershutter / garage is closed == door / window is open) |
Good question I guess. The blinds handle |
@n8henrie Just copy all the platforms over. Let PyLint figure out the most obviously mistakes. We'll release both cover together with garage door/rollershutter for 2 releases (4 weeks) and after that will remove the old ones. That will give us time to make sure it all is up and running. Looking forward to a PR. |
guys |
Hoping to send out the PR this afternoon, sorry for delays -- had some trouble getting the frontend dev environment set up. Settled on using the e.g. |
Make a first few steps towards merging garage_door and rollershutter (home-assistant#1949) by combining their basic __init__.py files, demo.py, and changing all the class / function names and docstrings. No major changes in function from prior, just getting started by changing the names.
- Fix service names: `open` instead of `open_cover` - Reverse previous definition of open / close: - home-assistant/core#1941 - home-assistant/core#1949 - home-assistant#54 - home-assistant#58
In the HA pull request template, I see a footnotes link to a post on another site about squashing commits -- it doesn't appear in the rendered version of the page. Do I need to squash before I make a PR? If so, could I make this more explicit in either the PR template or in CONTRIBUTING.md? |
We had this before Github offered to do the squashing while merging. |
Closed via #2891 |
Make sure you run the latest version before reporting an issue. Feature requests should go in the forum: https://community.home-assistant.io/c/feature-requests
Component/platform:
- Rollershutter
- Garage Door
Description of problem:
Relevant discussion: home-assistant/frontend#54
The Garage Door and Rollershutter components serve basically the same major function and share substantial portions of their codebase. They could conceivably be combined into a single component to eliminate redundant code and simplify component maintenance for the future. @balloob has suggested the component name
cover
, which is seems sufficiently generic (as this will likely be used for garage doors, overhead doors, certain times of blinds, window rollershutters, etc.), and shorter and easier to spell than rollershutter.I'm going to try to work on this over the next little while but wanted to open an issue for relevant discussion and feedback, as I'm not a very experienced Pythonista.
The text was updated successfully, but these errors were encountered: