Skip to content
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

Uppercase friendly name #70

Closed
ThomDietrich opened this issue Aug 13, 2021 · 11 comments
Closed

Uppercase friendly name #70

ThomDietrich opened this issue Aug 13, 2021 · 11 comments
Labels
enhancement New feature or request

Comments

@ThomDietrich
Copy link

Hey! I finally got around testing this integration and my first super minor question is whether the generated default entity friendly name could be changed to upper case

image

It's probably as easy as changing this line:

Thanks!

@bramstroker
Copy link
Owner

Hi, good to hear. Yes changing that line should fix it.
You can create a PR if you want.

@CM000n
Copy link
Contributor

CM000n commented Aug 13, 2021

I've noticed this kind of representation as well, but wasn't sure if a change makes sense. Not that it's just our German habit to capitalize proper names and nouns. 😉 But since @bramstroker probably sees it similarly, I have made a small PR to it

@ThomDietrich
Copy link
Author

ThomDietrich commented Aug 13, 2021

@CM000n Thanks!

That's a good call. My experience tells me that most integrations capitalize their friendly names. I've just looked at my home setup and there is only one integration that has lowercase entity names (however it mixes in some uppercase names, so let's not look at this one for guidance 😉) I don't think there is a formal rule for this.

@bramstroker
Copy link
Owner

bramstroker commented Aug 14, 2021

I don't have a hard preference for one or the other. I think it's more a german thing to do it. I'm looking for formal rules, but not sure what to search for.
Power is a common noun in the English language and should not be capitalized as far as I'm concerned. Only when it is used in the beginning of the sentence.
In my case it would look ugly because I only write the first letter of my entity name capitalized (Spots keuken = Spots kitchen in English), which will become "Spots kitchen Power".

@ThomDietrich
Copy link
Author

Generally my decision would be in favor of how most prominent integrations do it. Looking at different other integrations, I am seeing a mix but also a couple of integrations which work with lowercase. I would be okay to accept that and discard the request here ;)

@bramstroker bramstroker added the enhancement New feature or request label Aug 15, 2021
@bramstroker
Copy link
Owner

@ThomDietrich I prefer to keep lowercase the default, but will add an option to configure the name format, so users can override it themself.

@ThomDietrich
Copy link
Author

Fixed in #77

Thanks!

@bramstroker
Copy link
Owner

Fixed in #77

Thanks!

Yes it's almost ready. Need to do some final testing and update the readme

@bramstroker
Copy link
Owner

Readme has been extended and this feature is merged into master.
Please let me know if this works for you @ThomDietrich

@bramstroker
Copy link
Owner

Configurable entity name has been implemented

@ThomDietrich
Copy link
Author

Looks great

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants